summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/read.c b/read.c
index 663ffe8..b408c24 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;