summaryrefslogtreecommitdiff
path: root/post.c
diff options
context:
space:
mode:
Diffstat (limited to 'post.c')
-rw-r--r--post.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/post.c b/post.c
index 67d3957..3f4df04 100644
--- a/post.c
+++ b/post.c
@@ -52,7 +52,8 @@ void read_post_data(void)
add_data(buf);
pos = 0;
} else if (c == '+') {
- buf[++pos] = ' ';
+ buf[pos] = ' ';
+ buf[++pos] = '\0';
} else if (c == '%') {
char hex[3] = { 0, 0, 0 };
hex[0] = getchar();