diff --git a/examples/helpers.c b/examples/helpers.c index df60467..7d80b71 100644 --- a/examples/helpers.c +++ b/examples/helpers.c @@ -79,7 +79,7 @@ static inline int __removechar(char *b, size_t chrs) char *c = b + chrs; size_t blen = strlen(c) + sizeof(char); - memcpy(b, c, blen); + memmove(b, c, blen); return chrs; }