* locale/programs/locarchive.c (show_archive_content): Fix sizeof

argument in xmalloc size computation.
2007-04-16  Jakub Jelinek  <jakub@redhat.com>

	* locale/programs/locarchive.c (show_archive_content): Fix sizeof
	argument in xmalloc size computation.
This commit is contained in:
Jakub Jelinek 2007-04-16 23:02:04 +00:00
parent 7a82b74f17
commit 07358add74
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-04-16 Jakub Jelinek <jakub@redhat.com>
* locale/programs/locarchive.c (show_archive_content): Fix sizeof
argument in xmalloc size computation.
2007-04-01 Jakub Jelinek <jakub@redhat.com>
* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
/* Copyright (C) 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@ -1428,7 +1428,7 @@ show_archive_content (int verbose)
int sumused;
files = (struct dataent *) xmalloc (head->sumhash_used
* sizeof (struct sumhashent));
* sizeof (struct dataent));
sumhashtab = (struct sumhashent *) ((char *) ah.addr
+ head->sumhash_offset);