Date: Tue, 23 Mar 1999 18:43:06 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen exec.c Message-ID: <199903240243.SAA96159@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903240243.SAA96159>