summaryrefslogtreecommitdiff
path: root/src/htstools.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-08-17 07:57:44 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-08-17 07:57:44 +0000
commit5ab61bd6e3c21d35ed418613676f3be86fd78869 (patch)
treeddfa6a5c4ba49eb33655a610d7d2de684cb0d7de /src/htstools.c
parent1e12f60120e2390ba93c83d906839fdcb38107f0 (diff)
Some cleanup in obviously wrong 15-year-old code.
Diffstat (limited to 'src/htstools.c')
-rw-r--r--src/htstools.c4
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, '%');