http_parse_query_ex set key terminated with ASCII 0

pull/2/head
yuqing 2014-08-11 17:46:54 +08:00
parent 9ca29b6b06
commit ed4a70d97b
1 changed files with 1 additions and 0 deletions

View File

@ -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
{