]> granicus.if.org Git - curl/commitdiff
_num_chars did wrong when called with a number that starts with 1!
authorDaniel Stenberg <daniel@haxx.se>
Thu, 31 Jan 2002 07:51:06 +0000 (07:51 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 31 Jan 2002 07:51:06 +0000 (07:51 +0000)
lib/hostip.c

index 913acbee39b93f92c9dd1e12bd265f86a6895ef6..9151605d4e90104df3003786ee7791722710c211 100644 (file)
@@ -117,7 +117,7 @@ static int _num_chars(int i)
     chars++;
 
     i = (int) i / 10;
-  } while (i > 1);
+  } while (i >= 1);
 
   return chars;
 }