diff options
Diffstat (limited to 'cfsysline.c')
-rw-r--r-- | cfsysline.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cfsysline.c b/cfsysline.c index c87c2a54..d307569b 100644 --- a/cfsysline.c +++ b/cfsysline.c @@ -129,8 +129,11 @@ static rsRetVal parseIntVal(uchar **pp, size_t *pVal) } /* pull value */ - for(i = 0 ; *p && isdigit((int) *p) ; ++p) - i = i * 10 + *p - '0'; + for(i = 0 ; *p && (isdigit((int) *p) || *p == '.' || *p == ',') ; ++p) { + if(isdigit((int) *p)) { + i = i * 10 + *p - '0'; + } + } if(bWasNegative) i *= -1; |