freebsd-ports/devel/avr-gdb/files/patch-bfd-bfdio.c
Tijl Coosemans b9288bf1d0 Fix two bugs reported by clang.
PR:		ports/172209
Submitted by:	Miklos Magyari <magyarimiki@gmail.com>
Approved by:	maintainer timeout (1 year)
2013-10-18 09:59:43 +00:00

11 lines
267 B
C

--- 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;