mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[ion] Storage: fix crc32
This commit is contained in:
committed by
LeaNumworks
parent
961a17b4e0
commit
9a1ecec322
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user