Subject: CVS commit: src/bin/test
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 05/24/2007 18:47:08
Module Name:	src
Committed By:	christos
Date:		Thu May 24 18:47:08 UTC 2007

Modified Files:
	src/bin/test: test.c

Log Message:
Make sure we don't run over the end of the argument array while scanning
for input. This can happen if we have a unary not without an argument. When
we scan for the argument, we are already at the NULL element of the argument
array. Then when we scan ahead for a -a or -o, we end up testing the next
element after the NULL.


To generate a diff of this commit:
cvs rdiff -r1.31 -r1.32 src/bin/test/test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.