Fix compiler warning in src/iri.c

This commit is contained in:
Daniel Stenberg 2014-11-21 10:43:14 +01:00 committed by Tim Rühsen
parent 00203b2888
commit 09d47ead18
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2014-11-21 Daniel Stenberg <daniel@haxx.se>
* iri.c (remote_to_utf8): Fix compiler warning
2014-11-20 Tim Ruehsen <tim.ruehsen@gmx.de>
* progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR

View File

@ -279,9 +279,9 @@ remote_to_utf8 (struct iri *iri, const char *str, const char **new)
function. */
if (!c_strcasecmp (iri->uri_encoding, "UTF-8"))
{
const char *p = str;
for (p = str; *p; p++)
if (*p < 0 || *p > 127)
const unsigned char *p;
for (p = (unsigned char *) str; *p; p++)
if (*p > 127)
{
*new = strdup (str);
return true;