[ion] Storage: fix crc32

This commit is contained in:
Émilie Feral
2018-09-26 16:26:59 +02:00
committed by LeaNumworks
parent 961a17b4e0
commit 9a1ecec322

View File

@@ -48,7 +48,7 @@ Storage::Record::Record(const char * name) {
// CRC32 of the tail of name
uint32_t tailName = 0;
strlcpy((char *)&tailName, name+crc32TruncatedInputSize*sizeof(uint32_t), 2);
strlcpy((char *)&tailName, name+crc32TruncatedInputSize*sizeof(uint32_t), sizeof(uint32_t)/sizeof(char));
crc32Results[1] = Ion::crc32(&tailName, 1);
m_nameCRC32 = Ion::crc32(crc32Results, 2);
}