summaryrefslogtreecommitdiff
path: root/post.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-07-18 18:10:13 -0400
committerJakob Kaivo <jkk@ung.org>2019-07-18 18:10:13 -0400
commit50676e311e268262d92016c7eefd35952ab2d539 (patch)
treecad4df32876f0c3737da46751b80a552795e9dac /post.c
parent40e6878a6e96084c2fa0c98b988020ee06b5f9c1 (diff)
nul terminate + translations
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();