From 07358add7496f187be585c8d44434eb757b68bb7 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 16 Apr 2007 23:02:04 +0000 Subject: * locale/programs/locarchive.c (show_archive_content): Fix sizeof argument in xmalloc size computation. 2007-04-16 Jakub Jelinek * locale/programs/locarchive.c (show_archive_content): Fix sizeof argument in xmalloc size computation. --- locale/programs/locarchive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'locale') diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c index 5c0d5f1..4075695 100644 --- a/locale/programs/locarchive.c +++ b/locale/programs/locarchive.c @@ -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 , 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); -- cgit v1.1