summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2002-03-18 20:01:35 +0000
committerDJ Delorie <dj@delorie.com>2002-03-18 20:01:35 +0000
commit614e1d2580615f892f26928430e5e269571f9fb8 (patch)
tree3dd85d24981336c3c6483d7f332ee5e0d6dc1461 /libiberty
parentfeb0b02d3751f0f7766bb1889fb7a5072cfa9b83 (diff)
downloadgdb-614e1d2580615f892f26928430e5e269571f9fb8.tar.gz
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/strtod.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 01c73c94bcd..f92fef840e1 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
+
+ * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
+ seen.
+
2002-03-12 Mark Mitchell <mark@codesourcery.com>
* cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
diff --git a/libiberty/strtod.c b/libiberty/strtod.c
index 6b69ccfa8d2..97fc9339344 100644
--- a/libiberty/strtod.c
+++ b/libiberty/strtod.c
@@ -1,5 +1,5 @@
/* Implementation of strtod for systems with atof.
- Copyright (C) 1991, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1995, 2002 Free Software Foundation, Inc.
This file is part of the libiberty library. This library is free
software; you can redistribute it and/or modify it under the
@@ -75,7 +75,7 @@ strtod (str, ptr)
&& (p[6] == 't' || p[6] == 'T')
&& (p[7] == 'y' || p[7] == 'Y'))
{
- *ptr = p + 7;
+ *ptr = p + 8;
return atof (str);
}
else