From: Tom Tromey Date: Thu, 28 Apr 2011 20:36:50 +0000 (+0000) Subject: * bfdio.c (memory_bstat): Pass correct size to memset. X-Git-Tag: sid-snapshot-20110501~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5dee4ead118643fb1840d9cbac74c8a2a49919a;p=platform%2Fupstream%2Fbinutils.git * bfdio.c (memory_bstat): Pass correct size to memset. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8a295fc..8216abd 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2011-04-28 Tom Tromey + + * bfdio.c (memory_bstat): Pass correct size to memset. + 2011-04-28 Mike Frysinger * dwarf2.c (dwarf_debug_sections): Mark const. diff --git a/bfd/bfdio.c b/bfd/bfdio.c index ce92781..dab8e88 100644 --- a/bfd/bfdio.c +++ b/bfd/bfdio.c @@ -1,7 +1,7 @@ /* Low-level I/O routines for BFDs. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011 Free Software Foundation, Inc. Written by Cygnus Support. @@ -577,7 +577,7 @@ memory_bstat (bfd *abfd, struct stat *statbuf) { struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream; - memset (statbuf, 0, sizeof (statbuf)); + memset (statbuf, 0, sizeof (*statbuf)); statbuf->st_size = bim->size; return 0;