Skip to content

Commit

Permalink
use memset instead of bzero
Browse files Browse the repository at this point in the history
  • Loading branch information
z64me authored Sep 28, 2021
1 parent 2192b8b commit 44fb2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xc.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ void printlines(char* str, int lineA, int lineB) {
if ((i + strsz) > strlng)
return;
}
bzero(buffer, 1024);
memset(buffer, 0, sizeof(buffer));
memmove(buffer, &str[i], strsz);
printf("%s\n", buffer);
lastLinePrint = line;
Expand Down

0 comments on commit 44fb2ab

Please sign in to comment.