aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-04-01 09:54:19 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-04-01 09:54:19 +0000
commitfefc73a0c7ad1a802b9f3df5503239ab6b4904c1 (patch)
tree2d0ab78c26cea420541d2cc2e3dca4501e5ebaf0 /newlib
parente033f8aec05bffe9321732c233b779f42db117a2 (diff)
downloadnewlib-fefc73a0c7ad1a802b9f3df5503239ab6b4904c1.zip
newlib-fefc73a0c7ad1a802b9f3df5503239ab6b4904c1.tar.gz
newlib-fefc73a0c7ad1a802b9f3df5503239ab6b4904c1.tar.bz2
* libc/stdlib/strtod.c (_strtod_r): Never change s00.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/stdlib/strtod.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index e4af379..e42500f 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-01 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/stdlib/strtod.c (_strtod_r): Never change s00.
+
2005-03-23 Christopher Faylor <cgf@timesys.com>
* configure.host: For cygwin, redefine CC with cygwin include directory
diff --git a/newlib/libc/stdlib/strtod.c b/newlib/libc/stdlib/strtod.c
index 455389d..9b70dfc 100644
--- a/newlib/libc/stdlib/strtod.c
+++ b/newlib/libc/stdlib/strtod.c
@@ -111,7 +111,7 @@ _DEFUN (_strtod_r, (ptr, s00, se),
int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, dsign, e1, esign, i, j,
k, nd, nd0, nf, nz, nz0, sign;
long e;
- _CONST char *s, *s0, *s1;
+ _CONST char *s, *s0, *s1, *s2;
double aadj, aadj1, adj;
long L;
unsigned long z;
@@ -222,7 +222,7 @@ dig_done:
s = s00;
goto ret;
}
- s00 = s;
+ s2 = s;
esign = 0;
switch (c = *++s)
{
@@ -253,7 +253,7 @@ dig_done:
e = 0;
}
else
- s = s00;
+ s = s2;
}
if (!nd)
{