From: Paul Smith Date: Sun, 24 Nov 2013 08:45:38 +0000 (-0500) Subject: * read.c (unescape_char): Use memmove() for overlapping memory. X-Git-Tag: 4.1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30b25acc4ece3755314402954f2cb9abce348c3e;p=thirdparty%2Fmake.git * read.c (unescape_char): Use memmove() for overlapping memory. --- diff --git a/read.c b/read.c index 663ffe89..b408c24d 100644 --- a/read.c +++ b/read.c @@ -2343,14 +2343,14 @@ unescape_char (char *string, int c) if (*e != c || l%2 == 0) { /* It's not; just take it all without unescaping. */ - memcpy (p, s, l); + memmove (p, s, l); p += l; } else if (l > 1) { /* It is, and there's >1 backslash. Take half of them. */ l /= 2; - memcpy (p, s, l); + memmove (p, s, l); p += l; } s = e;