summaryrefslogtreecommitdiffabout
path: root/lib/urlencode.c
authorSergey Poznyakoff <gray@gnu.org.ua>2012-10-11 11:31:49 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2012-10-11 11:31:49 (GMT)
commitdfa58f8b8ebf024c2ec678a836adcd055e4bc052 (patch) (side-by-side diff)
tree18d3fba3a482ad31ce77d6de1990d67ab93b54db /lib/urlencode.c
parent242dd0a45ec3c7db7715d5dec327bad6d17e86a1 (diff)
downloadeclat-dfa58f8b8ebf024c2ec678a836adcd055e4bc052.tar.gz
eclat-dfa58f8b8ebf024c2ec678a836adcd055e4bc052.tar.bz2
Trivial fixes.
Diffstat (limited to 'lib/urlencode.c') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/urlencode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/urlencode.c b/lib/urlencode.c
index a9cd68c..278a097 100644
--- a/lib/urlencode.c
+++ b/lib/urlencode.c
@@ -46,7 +46,7 @@ urlencode(const char *input, size_t len, char **poutput, size_t *poutlen)
outlen = len;
for (i = 0; i < len; i++)
- if (!prtch[input[i]])
+ if (!prtch[(unsigned char)input[i]])
outlen += 2;
if (poutlen)
@@ -56,7 +56,7 @@ urlencode(const char *input, size_t len, char **poutput, size_t *poutlen)
*poutput = output;
for (i = 0; i < len; i++) {
- if (prtch[input[i]])
+ if (prtch[(unsigned char)input[i]])
*output++ = input[i];
else {
*output++ = '%';

Return to:

Send suggestions and report system problems to the System administrator.