diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-03-20 13:14:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-03-20 13:14:01 +0000 |
commit | 1282aad4a5122e391fccaee7de11f923b269ef45 (patch) | |
tree | c233a904922777fde2aae7dfba7524f26dc59f85 | |
parent | b8fad99f09a1543ce74ed06265053e986584a79e (diff) |
off-by-one for the case when it adds /? and a terminating zero to the URL
-rw-r--r-- | src/main.c | 2 |
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; |