From 15ef60d11b5444e005414ef513871de564eea18f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 21 Nov 2014 09:06:37 +0100 Subject: [PATCH] remote_to_utf8: cut off part of condition always false A signed char is never larger than 127. --- src/iri.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iri.c b/src/iri.c index d924699..943b039 100644 --- a/src/iri.c +++ b/src/iri.c @@ -1,7 +1,7 @@ /* IRI related functions. - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011, 2014 Free Software Foundation, Inc. This file is part of GNU Wget. GNU Wget is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -279,11 +279,11 @@ 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) + if (*p < 0) { *new = strdup (str); return true; } return false; -- 2.1.3