summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/seq/seq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/seq/seq.c b/usr.bin/seq/seq.c
index e7f9fbc..f94ca00 100644
--- a/usr.bin/seq/seq.c
+++ b/usr.bin/seq/seq.c
@@ -207,7 +207,8 @@ numeric(const char *s)
}
if (ISEXP((unsigned char)*s)) {
s++;
- if (ISSIGN((unsigned char)*s)) {
+ if (ISSIGN((unsigned char)*s) ||
+ isdigit((unsigned char)*s)) {
s++;
continue;
}
OpenPOWER on IntegriCloud