aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-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;