{
char *pt = NULL;
int val = strtol (str, &pt, 0);
- if ((*pt != '\0') && (*pt != ' ') && (*pt != '\t')) {
+ if ((*pt != '\0') && (*pt != '\n') && (*pt != ' ') && (*pt != '\t')) {
VERBOSE (morep, WARNING, PRINTF ("can't parse '%s' as integer\n", str));
}
return val;
{
char *pt = NULL;
double val = strtod (str, &pt);
- if ((*pt != '\0') && (*pt != ' ') && (*pt != '\t')) {
+ if ((*pt != '\0') && (*pt != '\n') && (*pt != ' ') && (*pt != '\t')) {
VERBOSE (morep, WARNING, PRINTF ("can't parse '%s' as double\n", str));
}
return val;