diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ int urlencode (char * o, const char * i /* o must have at least strlen(i)*3+1 by if (isalnum(*i) || *i == '.' || *i == '_' || *i == '-' || *i == '~') { o[written++] = *i; } else { - sprintf(o+written, "%%%02X", *i); + sprintf(o+written, "%%%02X", (unsigned char) *i); written += 3; } } |