]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Merge with fixes from gettext.
authorBruno Haible <bruno@clisp.org>
Mon, 18 Dec 2006 13:19:48 +0000 (13:19 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 18 Dec 2006 13:19:48 +0000 (13:19 +0000)
lib/fstrcmp.c

index 36b19bf50ec067dbea2edb6068a40d04689d1469..69311e114e1ac638980d76ef5c7e12a691e55c98 100644 (file)
@@ -553,7 +553,7 @@ keys_init (void)
 }
 
 /* Ensure that keys_init is called once only.  */
-gl_once_define(static, keys_init_once);
+gl_once_define(static, keys_init_once)
 
 
 /* NAME
@@ -620,7 +620,7 @@ fstrcmp (const char *string1, const char *string2)
         to be preserved.  */
       if (buffer != NULL)
        free (buffer);
-      buffer = (int *) xmalloc (bufmax * (2 * sizeof (int)));
+      buffer = (int *) xnmalloc (bufmax, 2 * sizeof (int));
       gl_tls_set (buffer_key, buffer);
       gl_tls_set (bufmax_key, (void *) (uintptr_t) bufmax);
     }