diff options
author | Alan Modra <amodra@bigpond.net.au> | 2012-01-16 22:30:19 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2012-01-16 22:30:19 +0000 |
commit | 485658a11bb645d4bf2d64d18b931e5b5b85ec20 (patch) | |
tree | 6ebd63dd97be851b1698a9815047f81b3182c513 /bfd/elf64-ppc.c | |
parent | 404f82e7cecb850d86c7104c79291a4741f5c138 (diff) | |
download | binutils-redhat-485658a11bb645d4bf2d64d18b931e5b5b85ec20.tar.gz |
* elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
trailing garbage in the note.
* elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 9c212b9c3f..7ffbe0e42c 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -2721,7 +2721,7 @@ ppc64_elf_write_core_note (bfd *abfd, char *buf, int *bufsiz, int note_type, va_list ap; va_start (ap, note_type); - memset (data, 0, 40); + memset (data, 0, sizeof (data)); strncpy (data + 40, va_arg (ap, const char *), 16); strncpy (data + 56, va_arg (ap, const char *), 80); va_end (ap); |