aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-07 18:35:28 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-07 18:35:28 +0000
commit84e71e1c500dca251deb98c3c5b8af7765861ebc (patch)
treecb2bf2072fd57d4df8eb7def7e5939e62f2671ee
parent88bb054e1db2884cfdc50eff6218bac0cf61f0ca (diff)
Andrés García fixed curl_escape()
-rw-r--r--lib/escape.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/escape.c b/lib/escape.c
index a753697e5..140bd655e 100644
--- a/lib/escape.c
+++ b/lib/escape.c
@@ -45,6 +45,7 @@ char *curl_escape(char *string, int length)
int newlen = alloc;
int index=0;
+ length = alloc-1;
while(length--) {
in = *string;
if(' ' == in)