diff options
author | Tom Tromey <tromey@redhat.com> | 2011-04-28 20:36:49 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-04-28 20:36:49 +0000 |
commit | c6e4815f24982e588403da86984f613dfb9cdab2 (patch) | |
tree | be6617160ad2a133da3b894f86c00671c0220c7f /bfd/bfdio.c | |
parent | 6379328b5621ca0b59ed9286f3bea7e841bb9f35 (diff) | |
download | binutils-redhat-c6e4815f24982e588403da86984f613dfb9cdab2.tar.gz |
* bfdio.c (memory_bstat): Pass correct size to memset.
Diffstat (limited to 'bfd/bfdio.c')
-rw-r--r-- | bfd/bfdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c index ce92781d50..dab8e88fb2 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; |