summaryrefslogtreecommitdiff
path: root/devel/avr-gdb/files/patch-bfd-bfdio.c
blob: ee72b11fb6a67407ac6fb6ae5eed05c72e7db916 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- bfd/bfdio.c.orig
+++ bfd/bfdio.c
@@ -577,7 +577,7 @@
 {
   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;