diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-08-17 07:57:44 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-08-17 07:57:44 +0000 |
commit | 5ab61bd6e3c21d35ed418613676f3be86fd78869 (patch) | |
tree | ddfa6a5c4ba49eb33655a610d7d2de684cb0d7de /src/htstools.c | |
parent | 1e12f60120e2390ba93c83d906839fdcb38107f0 (diff) |
Some cleanup in obviously wrong 15-year-old code.
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, '%'); |