Skip to content

Commit

Permalink
[ion] Storage: fix crc32
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilieNumworks authored and LeaNumworks committed Sep 26, 2018
1 parent 961a17b commit 9a1ecec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ion/src/shared/storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9a1ecec

Please sign in to comment.