From owner-cvs-all Tue May 29 11: 3:24 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8D7BA37B61B; Tue, 29 May 2001 11:03:15 -0700 (PDT) (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4TI3FZ53549; Tue, 29 May 2001 11:03:15 -0700 (PDT) (envelope-from imp) Message-Id: <200105291803.f4TI3FZ53549@freefall.freebsd.org> From: Warner Losh Date: Tue, 29 May 2001 11:03:15 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/ed ed.h main.c re.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG imp 2001/05/29 11:03:15 PDT Modified files: bin/ed ed.h main.c re.c Log: Use PATH_MAX rather than MAXPATHLEN. Also fix a possible off by one error caused by the -1 being on the wrong side of the comparison. This would not cause an overflow, as near as I can tell, because we truncate later anyway. We'd just fail to get a diagnostic for 1024 and 1025 byte file names. Revision Changes Path 1.14 +3 -9 src/bin/ed/ed.h 1.18 +9 -8 src/bin/ed/main.c 1.16 +2 -2 src/bin/ed/re.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message