diff --git a/misc.c b/misc.c index 37d0cb1..4f278f6 100644 --- a/misc.c +++ b/misc.c @@ -208,7 +208,7 @@ escape_string(const char *input) return NULL; } out = buf; - memmove(out + pos + 1, out + pos, len - pos + 1); + memmove(out + pos + 1, out + pos, len - pos); out[pos] = '\\'; pos += 1; }