+2003-04-05 Jakub Jelinek <jakub@redhat.com>
+
+ * stdio-common/reg-printf.c (__register_printf_function): Calloc
+ instead of malloc __printf_arginfo_table and __printf_function_table.
+ Reported by John Reiser <jreiser@BitWagon.com>.
+
2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
-/* Copyright (C) 1991, 1996, 1997, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1996,1997,2002,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
if (__printf_function_table == NULL)
{
__printf_arginfo_table = (printf_arginfo_function **)
- malloc ((UCHAR_MAX + 1) * sizeof (void *) * 2);
+ calloc (UCHAR_MAX + 1, sizeof (void *) * 2);
if (__printf_arginfo_table == NULL)
return -1;
__printf_function_table = (printf_function **)