Subject: CVS commit: src/bin/sh
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 01/12/2003 22:26:54
Module Name:	src
Committed By:	christos
Date:		Sun Jan 12 20:26:54 UTC 2003

Modified Files:
	src/bin/sh: mksyntax.c

Log Message:
Make sure that UPEOF is compared to the right type on the left hand
side. Sometimes it was compared to int, which was -1 on EOF, and on
unsigned char machines UPEOF was (unsigned char)-1. This worked
by chance because isalpha((unsigned char)-1) returns false usually,
but it does not when the locale is invalid!


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 src/bin/sh/mksyntax.c

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