From ed4a70d97bc852fa18988d1dab959d028da39dfd Mon Sep 17 00:00:00 2001 From: yuqing Date: Mon, 11 Aug 2014 17:46:54 +0800 Subject: [PATCH] http_parse_query_ex set key terminated with ASCII 0 --- src/http_func.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http_func.c b/src/http_func.c index 81780d7..b0f2743 100644 --- a/src/http_func.c +++ b/src/http_func.c @@ -381,6 +381,7 @@ int http_parse_query_ex(char *url, const int url_len, continue; } + *pKeyEnd = '\0'; pCurrent->key_len = (int)(pKeyEnd - pCurrent->key); if (pCurrent->key_len == 0) //empty key {