From owner-freebsd-bugs Sun Aug 29 8:20:43 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5F55A15E68 for ; Sun, 29 Aug 1999 08:20:32 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA74710; Sun, 29 Aug 1999 08:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from dao-lin-hay.heim3.tu-clausthal.de (dao-lin-hay.heim3.tu-clausthal.de [139.174.243.163]) by hub.freebsd.org (Postfix) with ESMTP id 0588F156F4 for ; Sun, 29 Aug 1999 08:13:51 -0700 (PDT) (envelope-from olli@dao-lin-hay.heim3.tu-clausthal.de) Received: (from root@localhost) by dao-lin-hay.heim3.tu-clausthal.de (8.9.3/8.9.3) id RAA06780; Sun, 29 Aug 1999 17:12:02 +0200 (CEST) (envelope-from olli) Message-Id: <199908291512.RAA06780@dao-lin-hay.heim3.tu-clausthal.de> Date: Sun, 29 Aug 1999 17:12:02 +0200 (CEST) From: oliver.fromme@heim3.tu-clausthal.de Reply-To: oliver.fromme@heim3.tu-clausthal.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/13453: Strange /usr/bin/expand limit (fix included) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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