diff --git a/src/common/buf.c b/src/common/buf.c index 6311def9..84ae957b 100644 --- a/src/common/buf.c +++ b/src/common/buf.c @@ -41,7 +41,7 @@ strip_curly_braces(char *s) return; } len -= 2; - memcpy(s, s + 1, len); + memmove(s, s + 1, len); s[len] = 0; }