summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-02-20 01:23:15 +0000
committerdelphij <delphij@FreeBSD.org>2010-02-20 01:23:15 +0000
commit5c6008ca2ae799c3fade6c39d84feb8164c78639 (patch)
treeaedceaae722b6def44107f2aee6d6c3b208fed8d
parent1739980e918430b64d94ecba54b8b4b4a817da3d (diff)
downloadFreeBSD-src-5c6008ca2ae799c3fade6c39d84feb8164c78639.zip
FreeBSD-src-5c6008ca2ae799c3fade6c39d84feb8164c78639.tar.gz
Treat numbers after [Ee] a positive number rather than an invalid
one.
-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