projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f890505
)
* read.c (unescape_char): Use memmove() for overlapping memory.
author
Paul Smith
<psmith@gnu.org>
Sun, 24 Nov 2013 08:45:38 +0000
(
03:45
-0500)
committer
Paul Smith
<psmith@gnu.org>
Sun, 24 Nov 2013 08:45:38 +0000
(
03:45
-0500)
read.c
patch
|
blob
|
history
diff --git
a/read.c
b/read.c
index 663ffe8904736bd7a4bf12fd269f37eae35e4b29..b408c24dad47aed7f6b962ed8485d1a6e99f13c8 100644
(file)
--- 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. */
- mem
cpy
(p, s, l);
+ mem
move
(p, s, l);
p += l;
}
else if (l > 1)
{
/* It is, and there's >1 backslash. Take half of them. */
l /= 2;
- mem
cpy
(p, s, l);
+ mem
move
(p, s, l);
p += l;
}
s = e;