diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-07-18 18:10:13 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-07-18 18:10:13 -0400 |
commit | 50676e311e268262d92016c7eefd35952ab2d539 (patch) | |
tree | cad4df32876f0c3737da46751b80a552795e9dac /post.c | |
parent | 40e6878a6e96084c2fa0c98b988020ee06b5f9c1 (diff) |
nul terminate + translations
Diffstat (limited to 'post.c')
-rw-r--r-- | post.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |