From: Paul Eggert Date: Mon, 12 Feb 2007 19:06:30 +0000 (+0000) Subject: * lib/string_.h (strncasecmp): Fix typo: this macro takes 3 X-Git-Tag: cvs-readonly~1071 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=3cb7f3b0cba1fc6a38968cc1d6416bc96f51c8fd;p=gnulib.git * lib/string_.h (strncasecmp): Fix typo: this macro takes 3 args, not 2. 2007-02-12 Paul Eggert --- diff --git a/ChangeLog b/ChangeLog index 56d9e122e..f855c0b80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-02-12 Paul Eggert + * lib/string_.h (strncasecmp): Fix typo: this macro takes 3 + args, not 2. + +2007-02-12 Paul Eggert + New module 'time', so that apps can include as per POSIX and GNU instead of separate include files like time_r.h and timegm.h. This implementation tries out a simpler approach diff --git a/lib/string_.h b/lib/string_.h index 1ac0ea7df..ea99e5e80 100644 --- a/lib/string_.h +++ b/lib/string_.h @@ -141,9 +141,9 @@ extern int strncasecmp (char const *s1, char const *s2, size_t n); POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strncasecmp -# define strncasecmp(a,b) \ +# define strncasecmp(a,b,n) \ (GL_LINK_WARNING ("strncasecmp cannot work correctly on character strings in multibyte locales - don't use it if you care about internationalization; use c_strncasecmp (from gnulib module c-strcase) if you want a locale independent function"), \ - strncasecmp (a, b)) + strncasecmp (a, b, n)) #endif #if defined GNULIB_POSIXCHECK