From owner-cvs-all Tue Mar 23 18:43:46 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2DC3814D98; Tue, 23 Mar 1999 18:43:23 -0800 (PST) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id SAA96159; Tue, 23 Mar 1999 18:43:06 -0800 (PST) (envelope-from peter@FreeBSD.org) Message-Id: <199903240243.SAA96159@freefall.freebsd.org> From: Peter Wemm Date: Tue, 23 Mar 1999 18:43:06 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen exec.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 1999/03/23 18:43:06 PST Modified files: lib/libc/gen exec.c Log: Fix a (relatively harmless) braino. I confused myself over the for() loop that counted the number of elements in argv. The counter is incremented in the next-iteration section of the loop, not the body, so at termination it's already "counted" the element that failed the continuation test - in this case the NULL argv terminator. Noted by: bde Revision Changes Path 1.12 +2 -3 src/lib/libc/gen/exec.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message