From 606f9173b249ee9b283e66420560aca95ab82195 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 10 Sep 2009 22:02:59 +0000 Subject: [PATCH] Avoid strtof() for portability reasons. --- src/Network/generic.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/generic.cxx b/src/Network/generic.cxx index f952c1e66..eb7911744 100644 --- a/src/Network/generic.cxx +++ b/src/Network/generic.cxx @@ -378,7 +378,7 @@ bool FGGeneric::parse_message_ascii() { case FG_FIXED: case FG_FLOAT: - val = _in_message[i].offset + strtof(p1, 0) * _in_message[i].factor; + val = _in_message[i].offset + strtod(p1, 0) * _in_message[i].factor; _in_message[i].prop->setFloatValue((float)val); break;