summaryrefslogtreecommitdiff
blob: 24fae8ce19c0fc9861e0e8e1f2d6b1c203ed6db6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/http.c b/http.c
index 5d64e9b..db91701 100644
--- a/http.c
+++ b/http.c
@@ -164,7 +164,7 @@ int http_exec( http_t *conn )
 		{
 			i ++;
 		}
-		strncat( conn->headers, s, MAX_QUERY );
+		strncat( conn->headers, s, MAX_QUERY - 1);
 	}
 
 #ifdef DEBUG