summaryrefslogtreecommitdiff
path: root/src/daemon/internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/internal.c')
-rw-r--r--src/daemon/internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/internal.c b/src/daemon/internal.c
index 433d4886..5e2ff553 100644
--- a/src/daemon/internal.c
+++ b/src/daemon/internal.c
@@ -61,7 +61,7 @@ MHD_http_unescape (char *val)
"%2x", &num)) || (1 == sscanf (&esc[1], "%2X", &num)))
{
esc[0] = (unsigned char) num;
- memmove (&esc[1], &esc[3], strlen (&esc[3]));
+ memmove (&esc[1], &esc[3], strlen (&esc[3]) + 1);
}
val = esc + 1;
}