From 560b4192815124e9f4150b3703980c5e2c8671b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Wed, 16 Jan 2008 22:28:17 +0000 Subject: [PATCH] * for loops seem to execute at least once? hm. --- webcit/webcit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webcit/webcit.c b/webcit/webcit.c index 38c617c53..424821dce 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -39,7 +39,8 @@ void unescape_input(char *buf) buflen --; } - for (a = 0; a < buflen; ++a) { + a = 0; + while (a < buflen) { if (buf[a] == '+') buf[a] = ' '; if (buf[a] == '%') { @@ -53,6 +54,7 @@ void unescape_input(char *buf) buflen -=2; } + a++; } } -- 2.39.2