[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/common/lib/libc/string
Module Name: src
Committed By: martin
Date: Tue Jan 8 21:57:06 UTC 2008
src/common/lib/libc/string: memchr.c strchr.c strrchr.c
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 \
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.
Main Index |
Thread Index |