* lib/string_.h (strncasecmp): Fix typo: this macro takes 3
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Feb 2007 19:06:30 +0000 (19:06 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Feb 2007 19:06:30 +0000 (19:06 +0000)
args, not 2.

2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>

ChangeLog
lib/string_.h

index 56d9e122e4dfc86ff95685d45338d57060cbba95..f855c0b80c5d76548ef8c427419643b33d32f06f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
+       args, not 2.
+
 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        New module 'time', so that apps can include <time.h> as per
index 1ac0ea7df5285c41b41978f634c2bb9f32a6bb4b..ea99e5e807f7eb1c3a1e9883c2200d98dfd70e6a 100644 (file)
@@ -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