From 91dd86ff52b2446c3967c1531bf57bd6ca679789 Mon Sep 17 00:00:00 2001 From: Dima Dorfman Date: Wed, 20 Jun 2001 01:08:58 +0000 Subject: [PATCH] Don't arbitrarily limit tabstop expansions to 256 characters. Submitted by: Oliver Fromme --- usr.bin/expand/expand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/expand/expand.c b/usr.bin/expand/expand.c index fcc723083a9..4044cc5d630 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");