Commit: Fix size of operand array in TIC30 disassembler

Message ID 878sp3muo9.fsf@redhat.com
State New
Headers show
Series
  • Commit: Fix size of operand array in TIC30 disassembler
Related show

Commit Message

Nick Clifton Oct. 29, 2019, 3:35 p.m.
Hi Guys.

  My previous patch to fix the TIC30 disassembler missed a spot.
  Fixed like this:

Cheers
  Nick

2019-10-29  Nick Clifton  <nickc@redhat.com>

	* tic30-dis.c (print_branch): Correct size of operand array.

Patch

diff --git a/opcodes/tic30-dis.c b/opcodes/tic30-dis.c
index a28be8307f..29948f4019 100644
--- a/opcodes/tic30-dis.c
+++ b/opcodes/tic30-dis.c
@@ -607,7 +607,7 @@  print_branch (disassemble_info *info,
 	      unsigned long insn_word,
 	      struct instruction *insn)
 {
-  char operand[2][13] =
+  char operand[2][OPERAND_BUFFER_LEN] =
   {
     {0},
     {0}