]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 29 Mar 2003 19:05:56 +0000 (19:05 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 29 Mar 2003 19:05:56 +0000 (19:05 +0000)
* stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
point correctly [PR libc/4993].

ChangeLog
stdlib/strtod.c

index e299697d6ffac1826c89f25752eaf4826a2b0e89..ea58c7cc55a9743bc3a1a0103eabd3cb5015a009 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-03-29  Ulrich Drepper  <drepper@redhat.com>
 
+       * 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.
 
index afe4359ca48905d3c61b914a15011f3a42f25809..8d773ecb3d23ca010463e3833a287ee8b83ba32c 100644 (file)
@@ -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.  */