From 5ab61bd6e3c21d35ed418613676f3be86fd78869 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Sat, 17 Aug 2013 07:57:44 +0000 Subject: Some cleanup in obviously wrong 15-year-old code. --- src/htstools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/htstools.c') diff --git a/src/htstools.c b/src/htstools.c index 7c543f6..65f868a 100644 --- a/src/htstools.c +++ b/src/htstools.c @@ -97,9 +97,9 @@ static int ehex(char *s) { } static void unescapehttp(char *s, String * tempo) { - int i; + size_t i; - for(i = 0; i < (int) strlen(s); i++) { + for(i = 0; i < s[i] != '\0'; i++) { if (s[i] == '%' && s[i + 1] == '%') { i++; StringAddchar(*tempo, '%'); -- cgit v1.2.3