aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-25 15:53:31 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-25 15:53:31 -0700
commit8fd44ea267050030e15267f184f0fdfd645216ed (patch)
tree0cc65604663726ce35fa94b356e1c544d2e640fc
parent1e864112953183150e1ea1be5c1a3d2cda589f97 (diff)
parentba50e35b5cfc4e505021528a2699362b2b9d5187 (diff)
Merge pull request #989 from waywardmonkeys/fix-strtof
Don't infinitely recurse in strtof().
-rw-r--r--system/lib/libc/stdlib/strtod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/lib/libc/stdlib/strtod.c b/system/lib/libc/stdlib/strtod.c
index 53191337..7c441247 100644
--- a/system/lib/libc/stdlib/strtod.c
+++ b/system/lib/libc/stdlib/strtod.c
@@ -284,7 +284,7 @@ strtold(const char* nptr, char **endptr)
float
strtof(const char* nptr, char **endptr)
{
- return (float) strtof(nptr, endptr);
+ return (float) strtod(nptr, endptr);
}
// XXX no locale support yet