diff options
| author | Paul Smith <psmith@gnu.org> | 2013-11-24 03:45:38 -0500 |
|---|---|---|
| committer | Paul Smith <psmith@gnu.org> | 2013-11-24 03:45:38 -0500 |
| commit | 30b25acc4ece3755314402954f2cb9abce348c3e (patch) | |
| tree | d33c858d28c2b607e88485699dfe275fc3a24376 | |
| parent | f8905059c3caba75fcbf6481ae6cc2b2eefdd67f (diff) | |
| download | gunmake-30b25acc4ece3755314402954f2cb9abce348c3e.tar.gz | |
* read.c (unescape_char): Use memmove() for overlapping memory.
| -rw-r--r-- | read.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
