From 2417230713414d98254884911e43dba853eb9c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Wed, 2 Oct 2019 12:44:39 +0800 Subject: Null-terminate it manually because we don't use any string function there --- request.h | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3