aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-03-20 13:14:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-03-20 13:14:01 +0000
commit1282aad4a5122e391fccaee7de11f923b269ef45 (patch)
treec233a904922777fde2aae7dfba7524f26dc59f85
parentb8fad99f09a1543ce74ed06265053e986584a79e (diff)
off-by-one for the case when it adds /? and a terminating zero to the URL
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 2de667606..0e1935670 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3738,7 +3738,7 @@ operate(struct Configurable *config, int argc, char *argv[])
/*
* Then append ? followed by the get fields to the url.
*/
- urlbuffer=(char *)malloc(strlen(url) + strlen(httpgetfields) + 2);
+ urlbuffer=(char *)malloc(strlen(url) + strlen(httpgetfields) + 3);
if(!urlbuffer) {
helpf("out of memory\n");
return CURLE_OUT_OF_MEMORY;