From: Daniel Stenberg Date: Thu, 31 Jan 2002 07:51:06 +0000 (+0000) Subject: _num_chars did wrong when called with a number that starts with 1! X-Git-Tag: curl-7_9_4~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3474ec4ecb72c664254c4f75b94a4959ab11b227;p=thirdparty%2Fcurl.git _num_chars did wrong when called with a number that starts with 1! --- diff --git a/lib/hostip.c b/lib/hostip.c index 913acbee39..9151605d4e 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -117,7 +117,7 @@ static int _num_chars(int i) chars++; i = (int) i / 10; - } while (i > 1); + } while (i >= 1); return chars; }