1
0
mirror of https://github.com/hsoft/collapseos.git synced 2025-04-02 11:38:40 +11:00

Replace deprecated bzero with memset

This commit is contained in:
Alexander Krotov 2020-06-17 01:23:57 +03:00
parent feeedcc55c
commit b4c36325ec

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