Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/bfd Fix memset usage.
details: https://anonhg.NetBSD.org/src/rev/a6a26e2fb597
branches: trunk
changeset: 770293:a6a26e2fb597
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Oct 11 15:13:08 2011 +0000
description:
Fix memset usage.
diffstat:
external/gpl3/gdb/dist/bfd/bfdio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 4d41b82f0bc4 -r a6a26e2fb597 external/gpl3/gdb/dist/bfd/bfdio.c
--- a/external/gpl3/gdb/dist/bfd/bfdio.c Tue Oct 11 15:11:59 2011 +0000
+++ b/external/gpl3/gdb/dist/bfd/bfdio.c Tue Oct 11 15:13:08 2011 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index