diff options
author | Alan Modra <amodra@gmail.com> | 2012-01-16 22:30:19 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-01-16 22:30:19 +0000 |
commit | 75cd47ede2b86ec445999b59c9741d60d1628ab3 (patch) | |
tree | 5085adc4f506389a4d554c07d8fc158b2fb5b86c /bfd/elf64-ppc.c | |
parent | d04550a6d725119a01c38046a7afd3a7bfddef5a (diff) | |
download | gdb-75cd47ede2b86ec445999b59c9741d60d1628ab3.zip gdb-75cd47ede2b86ec445999b59c9741d60d1628ab3.tar.gz gdb-75cd47ede2b86ec445999b59c9741d60d1628ab3.tar.bz2 |
* 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 9c212b9..7ffbe0e 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); |