projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8fad99
)
off-by-one for the case when it adds /? and a terminating zero to the URL
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 20 Mar 2006 13:14:01 +0000
(13:14 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 20 Mar 2006 13:14:01 +0000
(13:14 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
2de6676
..
0e19356
100644
(file)
--- 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;