alloc'd one more byte

feature/UrlUtils
Kenneth Barbour 2018-11-29 21:16:55 -05:00
parent ae9fa1a9e3
commit 9c2520dcf3
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ QueryString::QueryString(const char* query) : n(0)
if (query[0] == '\0') return;
// create buffer
buffer_length = urlenc::decoded_length(query) + 1;
buffer_length = urlenc::decoded_length(query) + 2;
buffer = (char*) malloc(buffer_length);
// create fields