Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 06/09/2000 14:35:55
Module Name:	basesrc
Committed By:	nathanw
Date:		Fri Jun  9 21:35:54 UTC 2000

Modified Files:
	basesrc/lib/libc/stdlib: getopt_long.c

Log Message:
Don't segfault when complaining about an invalid single-character option.

When complaining about a long option which requires an argument,
print the actual option, not some pointer-garbage.

(Hint: "%c" and "%s" are different.)


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 basesrc/lib/libc/stdlib/getopt_long.c

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