strchrnul: work around cygwin bug
authorEric Blake <eblake@redhat.com>
Fri, 15 Apr 2011 19:53:50 +0000 (13:53 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 15 Apr 2011 19:53:50 +0000 (13:53 -0600)
commit2aa729ac6af316bc30111144684a51c4650d5c44
tree695c7e8b5f88fe22a9ee869159a204f587e853d7
parent61a6a26974843b935539a6fb0098d802195a7383
strchrnul: work around cygwin bug

A misplaced * means that cygwin 1.7.9 dereferences NULL rather
than returning the location of the trailing NUL byte.

* doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
* m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
* modules/string (Makefile.am): Substitute it.
* lib/string.in.h (strchrnul): Use it.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/glibc-functions/strchrnul.texi
lib/string.in.h
m4/strchrnul.m4
m4/string_h.m4
modules/string