if (currentLength >= sourceLength) {
// Use the existing space:
indexContent = seq->m_index;
- memcpy(m_content.buffer() + indexContent, source, sourceLength);
+ memmove(m_content.buffer() + indexContent, source, sourceLength);
m_lost += currentLength - sourceLength;
} else {
// New space must be allocated:
m_c0 = 0x242070dbffff5bb1ll;\r
m_d0 = 0xc1bdceee895cd7bell;\r
memset(m_digest, 0, sizeof m_digest);\r
- memset(m_waiting, 0, sizeof m_waiting);\r
+ memset(m_waiting, 0, m_chunkSize * 2);\r
m_lengthWaiting = 0;\r
m_length = 0;\r
m_hexDigest.setLength(0);\r
uint64_t m_b0;
uint64_t m_c0;
uint64_t m_d0;
- uint64_t m_salt;
};
#endif /* MATH_RERPD64_HPP_ */
const char* storageFile){\r
// forget the last line (checksum):\r
int count = names.count() - 1;\r
- names.remove(count - 1);\r
+ names.remove(count);\r
for (int ii = 0; ii < count; ii++){\r
const char* name = names.strOf(ii);\r
const char* ptr = strchr(name, '\t');\r