* tic30-dis.c (get_register_operand): Don't ask strncpy to fill
entire buffer.
+2021-06-19 Alan Modra <amodra@gmail.com>
+
+ * tic30-dis.c (get_register_operand): Don't ask strncpy to fill
+ entire buffer.
+
2021-06-17 Alan Modra <amodra@gmail.com>
* ppc-opc.c (powerpc_opcodes): Move cell db*cyc to proper location
{
if ((fragment & 0x1F) == current_reg->opcode)
{
- strncpy (buffer, current_reg->name, OPERAND_BUFFER_LEN);
+ strncpy (buffer, current_reg->name, OPERAND_BUFFER_LEN - 1);
buffer[OPERAND_BUFFER_LEN - 1] = 0;
return 1;
}