diff options
Diffstat (limited to 'src/htstools.c')
-rw-r--r-- | src/htstools.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, '%'); |