From: Ulrich Drepper Date: Sat, 29 Mar 2003 19:05:56 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_3~1009 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8592d04fab67a5a553bd9fc5573f234897bc0af;p=thirdparty%2Fglibc.git Update. * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal point correctly [PR libc/4993]. --- diff --git a/ChangeLog b/ChangeLog index e299697d6ff..ea58c7cc55a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-03-29 Ulrich Drepper + * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal + point correctly [PR libc/4993]. + * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid netlink_open calls if netlink is known to not be available. diff --git a/stdlib/strtod.c b/stdlib/strtod.c index afe4359ca48..8d773ecb3d2 100644 --- a/stdlib/strtod.c +++ b/stdlib/strtod.c @@ -568,7 +568,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM) for (cnt = 0; decimal[cnt] != '\0'; ++cnt) if (cp[cnt] != decimal[cnt]) break; - if (decimal[cnt] == '\0' && cp[1] >= '0' && cp[1] <= '9') + if (decimal[cnt] == '\0' && cp[cnt] >= '0' && cp[cnt] <= '9') { /* We accept it. This funny construct is here only to indent the code directly. */