summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/string.c b/src/src/string.c
index 94d61b1a3..6f54cc624 100644
--- a/src/src/string.c
+++ b/src/src/string.c
@@ -374,7 +374,8 @@ while (*p)
{
if (*p == '\\')
{
- *q = string_interpret_escape(&p);
+ *q++ = string_interpret_escape(&p);
+ p++;
}
else
{