From 0a167a9b98fa8a9cca77a6f6c09bcb366579d1d5 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sat, 20 Feb 2010 01:23:15 +0000 Subject: [PATCH] Treat numbers after [Ee] a positive number rather than an invalid one. --- usr.bin/seq/seq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/seq/seq.c b/usr.bin/seq/seq.c index e7f9fbca991c..f94ca0051755 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; }