diff --git a/src/ChangeLog b/src/ChangeLog index 98c47b5e..120e82e1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-11-21 Daniel Stenberg + + * iri.c (remote_to_utf8): Fix compiler warning + 2014-11-20 Tim Ruehsen * progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR diff --git a/src/iri.c b/src/iri.c index d924699e..75ba3e0d 100644 --- a/src/iri.c +++ b/src/iri.c @@ -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;