curl-users
[ curl-Bugs-510420 ] numChars
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:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=510420&group_id=976
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
#105)
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:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=510420&group_id=976
Received on 2002-01-30