Module Name:    src
Committed By:   joerg
Date:           Tue Oct 11 15:13:08 UTC 2011

Modified Files:
        src/external/gpl3/gdb/dist/bfd: bfdio.c

Log Message:
Fix memset usage.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/bfd/bfdio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/bfd/bfdio.c
diff -u src/external/gpl3/gdb/dist/bfd/bfdio.c:1.1.1.1 src/external/gpl3/gdb/dist/bfd/bfdio.c:1.2
--- src/external/gpl3/gdb/dist/bfd/bfdio.c:1.1.1.1	Sat Sep 24 19:43:29 2011
+++ src/external/gpl3/gdb/dist/bfd/bfdio.c	Tue Oct 11 15:13:08 2011
@@ -577,7 +577,7 @@ memory_bstat (bfd *abfd, struct stat *st
 {
   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;

Reply via email to