From 6db88413829e4426364e378b9f0181c4cd9529d7 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Mon, 28 Mar 2016 00:09:02 +0300 Subject: [PATCH] [examples] stupid bug with copying fixed; --- examples/helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }