Browse Source

Replace deprecated bzero with memset (#119)

pull/124/head
link2xt GitHub 3 years ago
parent
commit
4017fd04ac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tools/blkpack.c

+ 1
- 1
tools/blkpack.c View File

@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
if (blkid >= blkcnt) {
int newcnt = blkid+1;
buf = realloc(buf, newcnt*1024);
bzero(buf+(blkcnt*1024), (newcnt-blkcnt)*1024);
memset(buf+(blkcnt*1024), 0, (newcnt-blkcnt)*1024);
blkcnt = newcnt;
}
char fullpath[0x200];


Loading…
Cancel
Save