diff --git a/ion/src/shared/storage.cpp b/ion/src/shared/storage.cpp index adb6d1497..5269f40e2 100644 --- a/ion/src/shared/storage.cpp +++ b/ion/src/shared/storage.cpp @@ -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); }