diff options
author | dd <dd@FreeBSD.org> | 2001-06-20 01:08:58 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-06-20 01:08:58 +0000 |
commit | a925159d667ae8d62369eedff86c5f40b63ecbe0 (patch) | |
tree | 2b5d2d7f14f1db603e82bab857baa683142d4462 | |
parent | 3910f65aa276a42bb870032078b48e97a495de0f (diff) | |
download | FreeBSD-src-a925159d667ae8d62369eedff86c5f40b63ecbe0.zip FreeBSD-src-a925159d667ae8d62369eedff86c5f40b63ecbe0.tar.gz |
Don't arbitrarily limit tabstop expansions to 256 characters.
Submitted by: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
-rw-r--r-- | usr.bin/expand/expand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/expand/expand.c b/usr.bin/expand/expand.c index fcc7230..4044cc5 100644 --- a/usr.bin/expand/expand.c +++ b/usr.bin/expand/expand.c @@ -157,7 +157,7 @@ getstops(cp) i = 0; while (*cp >= '0' && *cp <= '9') i = i * 10 + *cp++ - '0'; - if (i <= 0 || i > 256) + if (i <= 0) errx(1, "bad tab stop spec"); if (nstops > 0 && i <= tabstops[nstops-1]) errx(1, "bad tab stop spec"); |