From 84e71e1c500dca251deb98c3c5b8af7765861ebc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 7 Apr 2001 18:35:28 +0000 Subject: =?UTF-8?q?Andr=E9s=20Garc=EDa=20fixed=20curl=5Fescape()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/escape.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3