summaryrefslogtreecommitdiff
path: root/request.h
diff options
context:
space:
mode:
Diffstat (limited to 'request.h')
-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;