Skip to content

Commit 44fb2ab

Browse files
authored
use memset instead of bzero
1 parent 2192b8b commit 44fb2ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ void printlines(char* str, int lineA, int lineB) {
746746
if ((i + strsz) > strlng)
747747
return;
748748
}
749-
bzero(buffer, 1024);
749+
memset(buffer, 0, sizeof(buffer));
750750
memmove(buffer, &str[i], strsz);
751751
printf("%s\n", buffer);
752752
lastLinePrint = line;

0 commit comments

Comments
 (0)