diff options
author | Rob Landley <rob@landley.net> | 2015-09-02 20:09:42 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-09-02 20:09:42 -0500 |
commit | 5640847b0328c5319f353eed985781e166547ef7 (patch) | |
tree | 910077abfba907001bb9c2417b6047ba29d331f5 /toys/lsb/seq.c | |
parent | 3426da02e60f33114ff0b3eac8680ab5bb3cdd93 (diff) | |
download | toybox-5640847b0328c5319f353eed985781e166547ef7.tar.gz |
seq -f %0-f is a valid pattern.
Diffstat (limited to 'toys/lsb/seq.c')
-rw-r--r-- | toys/lsb/seq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/lsb/seq.c b/toys/lsb/seq.c index 62f42557..322940b3 100644 --- a/toys/lsb/seq.c +++ b/toys/lsb/seq.c @@ -39,7 +39,7 @@ static void insanitize(char *f) if (*s != '%') continue; if (*++s == '%') continue; if (found++) break; - while (0 <= stridx("'#-+ ", *s)) s++; + while (0 <= stridx("0'#-+ ", *s)) s++; while (isdigit(*s)) s++; if (*s == '.') s++; while (isdigit(*s)) s++; |