diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-02 12:44:39 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-02 12:44:39 +0800 |
commit | 2417230713414d98254884911e43dba853eb9c7a (patch) | |
tree | 7314f1f5ffdd630ab9f63430e3e979ec08751b66 | |
parent | 219cb65aa0d71ef45f465853aac39e4b3d9d5611 (diff) |
Null-terminate it manually
because we don't use any string function there
-rw-r--r-- | request.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -66,6 +66,7 @@ inline void request(size_t (*writefunction)(void *, size_t, size_t, void *) break; case 'c': url[length++] = (char)va_arg(ap, int); + url[length] = '\0'; break; default: break; |