From 9a1ecec3229d0cbc5e9820eebbd3ae2c9198c60e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 26 Sep 2018 16:26:59 +0200 Subject: [PATCH] [ion] Storage: fix crc32 --- ion/src/shared/storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ion/src/shared/storage.cpp b/ion/src/shared/storage.cpp index adb6d1497e4..5269f40e2c7 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); }