summaryrefslogtreecommitdiffstats
path: root/gnulib-local/lib/fstrcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib-local/lib/fstrcmp.c')
-rw-r--r--gnulib-local/lib/fstrcmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnulib-local/lib/fstrcmp.c b/gnulib-local/lib/fstrcmp.c
index bfcd7a4..bfe3e79 100644
--- a/gnulib-local/lib/fstrcmp.c
+++ b/gnulib-local/lib/fstrcmp.c
@@ -647,7 +647,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);
}