diff options
author | Eli Zaretskii <eliz@gnu.org> | 2012-09-01 07:52:54 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2012-09-01 07:52:54 +0000 |
commit | e95e4eed5b166550cf81bdf5125c19bd839f91f0 (patch) | |
tree | f50bb7579c83f0d477d9457cdb6372a710da7369 /read.c | |
parent | fec87a7f5020100312b3c592d1a550495e163561 (diff) | |
download | make-e95e4eed5b166550cf81bdf5125c19bd839f91f0.tar.gz |
Fix unescape_char when not unescaping.
read.c (unescape_char): Advance 'p' after copying the unescaped
characters. Otherwise the backslashes are incorrectly erased from
the original string.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2242,9 +2242,9 @@ unescape_char (char *string, int c) /* It is, and there's >1 backslash. Take half of them. */ l /= 2; memcpy (p, s, l); - p += l; } s = e; + p += l; } *(p++) = *(s++); |