aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-29 19:05:56 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-29 19:05:56 +0000
commitd8592d04fab67a5a553bd9fc5573f234897bc0af (patch)
treee45729878eb419ccf4a974fc76f9f18c35dce15e /stdlib
parentea473bad4c98d8e36cd510ba117d8fd7ab623c85 (diff)
downloadglibc-d8592d04fab67a5a553bd9fc5573f234897bc0af.zip
glibc-d8592d04fab67a5a553bd9fc5573f234897bc0af.tar.gz
glibc-d8592d04fab67a5a553bd9fc5573f234897bc0af.tar.bz2
Update.
* stdlib/strtod.c (INTERNAL): Recognize first digit after decimal point correctly [PR libc/4993].
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/strtod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/strtod.c b/stdlib/strtod.c
index afe4359..8d773ec 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. */