summary refs log tree commit diff
path: root/src/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/request.c')
-rw-r--r--src/request.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/request.c b/src/request.c
index b582dcf..6885b1f 100644
--- a/src/request.c
+++ b/src/request.c
@@ -44,6 +44,7 @@ struct LibHTTPC_Request *LibHTTPC_loadRequest(struct LibHTTPC_Request *request_b
 
     for (size_t i = 0; (next = strstr(next, "\r\n")); ++next, ++i)
     {
+        *next = '\0';
         next += 2;
 
         if (strstr(next, "\r\n") == next)