summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-02 12:44:39 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-02 12:44:39 +0800
commit2417230713414d98254884911e43dba853eb9c7a (patch)
tree7314f1f5ffdd630ab9f63430e3e979ec08751b66
parent219cb65aa0d71ef45f465853aac39e4b3d9d5611 (diff)
Null-terminate it manually
because we don't use any string function there
-rw-r--r--request.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/request.h b/request.h
index 29dfa7a..932f75e 100644
--- a/request.h
+++ b/request.h
@@ -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;