From 50676e311e268262d92016c7eefd35952ab2d539 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 18 Jul 2019 18:10:13 -0400 Subject: nul terminate + translations --- post.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.1