1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 12:08:07 +11:00

Replace deprecated bzero with memset (#119)

This commit is contained in:
link2xt 2020-06-17 02:58:23 +03:00 committed by GitHub
parent 79da1db90e
commit 4017fd04ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];