alloc'd one more byte

documentation
Kenneth Barbour 2018-11-29 21:16:55 -05:00
parent 3c7997f1f7
commit 5f31638210
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