This code is from "Improve hash performance"
Unified · Split
| @@ -319,7 +319,7 @@ ST_FUNC void cstr_cat(CString *cstr, const char *str, int len) · 318 unmodified lines | ||
| 319 | 319 | size = cstr->size + len; |
| 320 | 320 | if (size > cstr->size_allocated) |
| 321 | 321 | cstr_realloc(cstr, size); |
| 322 | − memcpy(((unsigned char *)cstr->data) + cstr->size, str, len); | |
| 322 | + memmove(((unsigned char *)cstr->data) + cstr->size, str, len); | |
| 323 | 323 | cstr->size = size; |
| 324 | 324 | } |
| 325 | 325 | |