2004-01-13 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 13 Jan 2004 19:56:46 +0000 (19:56 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 13 Jan 2004 19:56:46 +0000 (19:56 +0000)
        * sh-dis.c (print_insn_sh): Allocate 4 bytes for insn.

opcodes/ChangeLog
opcodes/sh-dis.c

index df95ada..747ca77 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-13  Michael Snyder  <msnyder@redhat.com>
+
+       * sh-dis.c (print_insn_sh): Allocate 4 bytes for insn.
+
 2004-01-09  Paul Brook  <paul@codesourcery.com>
 
        * arm-opc.h (arm_opcodes): Move generic mcrr after known
index c0e1a2e..70fdffb 100644 (file)
@@ -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;