Source and destination overlap in memcpy, cstr_cat (tccpp.c:322)

This code is from "Improve hash performance"
master
seyko 2016-04-22 18:21:09 +03:00
parent d25f67ec12
commit 8db7a0f7af
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ ST_FUNC void cstr_cat(CString *cstr, const char *str, int len)
size = cstr->size + len;
if (size > cstr->size_allocated)
cstr_realloc(cstr, size);
memcpy(((unsigned char *)cstr->data) + cstr->size, str, len);
memmove(((unsigned char *)cstr->data) + cstr->size, str, len);
cstr->size = size;
}