cURL / Mailing Lists / curl-users / Single Mail


[ curl-Bugs-510420 ] numChars

From: <>
Date: Tue, 29 Jan 2002 15:37:22 -0800

Bugs item #510420, was opened at 2002-01-29 15:37
You can respond by visiting:

Category: libcurl
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: numChars

Initial Comment:
Version 7.9.3

In file hostip.c, function _num_chars(int i) (line

The while condition is incorrect, it is while (i >
1), but in fact it should be while (i >= 1).

Try this with _num_chars(1638), you would get 3 not 4
as expected. Basically any number that starts with 1,
will have one less character than expected.


You can respond by visiting:
Received on 2002-01-30