Subject: CVS commit: src/common/lib/libc/string
To: None <source-changes@NetBSD.org>
From: Martin Husemann <martin@netbsd.org>
List: source-changes
Date: 01/08/2008 21:57:06
Module Name: src
Committed By: martin
Date: Tue Jan 8 21:57:06 UTC 2008
Modified Files:
src/common/lib/libc/string: memchr.c strchr.c strrchr.c
Log Message:
When passing char (or unsigned char) arguments as int, assign them to a
temporary char (resp. unsigned char) before comparing, to force truncation
to the proper domain. This makes the coresponding regression tests succeed.
To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 src/common/lib/libc/string/memchr.c \
src/common/lib/libc/string/strchr.c
cvs rdiff -r1.3 -r1.4 src/common/lib/libc/string/strrchr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.