* locale/programs/locarchive.c (show_archive_content): Fix sizeof
authorJakub Jelinek <jakub@redhat.com>
Mon, 16 Apr 2007 23:02:04 +0000 (23:02 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 16 Apr 2007 23:02:04 +0000 (23:02 +0000)
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.

ChangeLog
locale/programs/locarchive.c

index fed20ce..6d57e63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 5c0d5f1..4075695 100644 (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);