Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 17:12:02 +0200 (CEST)
From:      oliver.fromme@heim3.tu-clausthal.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/13453: Strange /usr/bin/expand limit (fix included)
Message-ID:  <199908291512.RAA06780@dao-lin-hay.heim3.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help

>Number:         13453
>Category:       bin
>Synopsis:       Strange /usr/bin/expand limit (fix included)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 29 08:20:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Fromme
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Clausthal University of Technology, Computing Center
>Environment:

All versions of FreeBSD up to 4.0-current.

>Description:

/usr/bin/expand does not allow tab stops > 256 characters.
There's no reason for such an arbitrary limit.

>How-To-Repeat:

printf '\t' | expand -3000

>Fix:
	
--- expand.c.old	Sun Dec  6 23:58:23 1998
+++ expand.c	Sun Aug 29 17:08:15 1999
@@ -160,7 +160,7 @@
 		i = 0;
 		while (*cp >= '0' && *cp <= '9')
 			i = i * 10 + *cp++ - '0';
-		if (i <= 0 || i > 256) {
+		if (i <= 0) {
 bad:
 			fprintf(stderr, "Bad tab stop spec\n");
 			exit(1);

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908291512.RAA06780>