diff options
Diffstat (limited to 'lib/xwrap.c')
-rw-r--r-- | lib/xwrap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c index 7276151f..2c3b6041 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -795,6 +795,7 @@ long xparsetime(char *arg, long units, long *fraction) long l; char *end; + if (*arg != '.' && !isdigit(*arg)) error_exit("bad %s", arg); if (CFG_TOYBOX_FLOAT) d = strtod(arg, &end); else l = strtoul(arg, &end, 10); |