[Fix] Small correction in a memset from packfile

This commit is contained in:
Allanis 2013-02-24 18:01:15 +00:00
parent 5c02e0ecfd
commit 84558ae2c9

View File

@ -350,7 +350,7 @@ void* pack_readfile(const char* packfile, const char* filename, uint32_t* filesi
return NULL;
}
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.
md5_state_t md5;