Skip to content

Commit

Permalink
* locale/programs/locarchive.c (show_archive_content): Fix sizeof
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jakub Jelinek committed Apr 16, 2007
1 parent 7a82b74 commit 07358ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions locale/programs/locarchive.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 07358ad

Please sign in to comment.