Replace deprecated bzero with memset (#119)
This commit is contained in:
parent
79da1db90e
commit
4017fd04ac
@ -34,7 +34,7 @@ int main(int argc, char *argv[])
|
|||||||
if (blkid >= blkcnt) {
|
if (blkid >= blkcnt) {
|
||||||
int newcnt = blkid+1;
|
int newcnt = blkid+1;
|
||||||
buf = realloc(buf, newcnt*1024);
|
buf = realloc(buf, newcnt*1024);
|
||||||
bzero(buf+(blkcnt*1024), (newcnt-blkcnt)*1024);
|
memset(buf+(blkcnt*1024), 0, (newcnt-blkcnt)*1024);
|
||||||
blkcnt = newcnt;
|
blkcnt = newcnt;
|
||||||
}
|
}
|
||||||
char fullpath[0x200];
|
char fullpath[0x200];
|
||||||
|
Loading…
Reference in New Issue
Block a user