From 48b66f4578be80921693872a5576f9cba87a9ca4 Mon Sep 17 00:00:00 2001 From: Maddes Buecher Date: Thu, 17 Aug 2000 19:45:59 +0000 Subject: [PATCH] ATOF problems with leading spaces fix --- common/lib_replace.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/lib_replace.c b/common/lib_replace.c index 7fb5691..d44efb9 100644 --- a/common/lib_replace.c +++ b/common/lib_replace.c @@ -106,6 +106,13 @@ float Q_atof (char *str) int c; int decimal, total; +// 1999-12-27 ATOF problems with leading spaces fix by Maddes start + while ((*str) && (*str<=' ')) + { + str++; + } +// 1999-12-27 ATOF problems with leading spaces fix by Maddes end + if (*str == '-') { sign = -1;