diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-04-07 18:35:28 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-04-07 18:35:28 +0000 |
commit | 84e71e1c500dca251deb98c3c5b8af7765861ebc (patch) | |
tree | cb2bf2072fd57d4df8eb7def7e5939e62f2671ee /lib | |
parent | 88bb054e1db2884cfdc50eff6218bac0cf61f0ca (diff) |
Andrés García fixed curl_escape()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/escape.c | 1 |
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) |