diff options
author | Eric Blake <eblake@redhat.com> | 2011-04-15 13:53:50 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-04-15 13:53:50 -0600 |
commit | 2aa729ac6af316bc30111144684a51c4650d5c44 (patch) | |
tree | 695c7e8b5f88fe22a9ee869159a204f587e853d7 /modules/string | |
parent | 61a6a26974843b935539a6fb0098d802195a7383 (diff) | |
download | gnulib-2aa729ac6af316bc30111144684a51c4650d5c44.tar.gz |
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>
Diffstat (limited to 'modules/string')
-rw-r--r-- | modules/string | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/string b/modules/string index 9b3e9f0fb8..a88bdce00a 100644 --- a/modules/string +++ b/modules/string @@ -87,6 +87,7 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ + -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \ -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ |