[Fix] Small correction in a memset from packfile
This commit is contained in:
parent
5c02e0ecfd
commit
84558ae2c9
@ -350,7 +350,7 @@ void* pack_readfile(const char* packfile, const char* filename, uint32_t* filesi
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
DEBUG("Read %d bytes from '%s'", bytes, filename);
|
DEBUG("Read %d bytes from '%s'", bytes, filename);
|
||||||
memset(buf+size, '\0', 1); // Append size '\0' for it to validate as a string.
|
memset(buf+size, 0, 1); // Append size '\0' for it to validate as a string.
|
||||||
|
|
||||||
// Check the md5.
|
// Check the md5.
|
||||||
md5_state_t md5;
|
md5_state_t md5;
|
||||||
|
Loading…
Reference in New Issue
Block a user