From f532f3fa70bca3497edbcc37771da41a033e871c Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 13 Jan 2004 19:56:46 +0000 Subject: [PATCH] 2004-01-13 Michael Snyder * sh-dis.c (print_insn_sh): Allocate 4 bytes for insn. --- opcodes/ChangeLog | 4 ++++ opcodes/sh-dis.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index df95ada0a4c..747ca77ff61 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2004-01-13 Michael Snyder + + * sh-dis.c (print_insn_sh): Allocate 4 bytes for insn. + 2004-01-09 Paul Brook * arm-opc.h (arm_opcodes): Move generic mcrr after known diff --git a/opcodes/sh-dis.c b/opcodes/sh-dis.c index c0e1a2ebfa0..70fdffb48e8 100644 --- a/opcodes/sh-dis.c +++ b/opcodes/sh-dis.c @@ -397,7 +397,7 @@ print_insn_sh (memaddr, info) { fprintf_ftype fprintf_fn = info->fprintf_func; void *stream = info->stream; - unsigned char insn[2]; + unsigned char insn[4]; unsigned char nibs[4]; int status; bfd_vma relmask = ~(bfd_vma) 0; -- 2.30.2