forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
11 lines
267 B
C
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;
|