aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arc-dis.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2012-10-18 06:53:16 +0000
committerKai Tietz <kai.tietz@onevision.com>2012-10-18 06:53:16 +0000
commit4ad3b7ef02a26744c4f648411537e240274999fe (patch)
tree2fd905b267991a0bd340248bc6d3789b3d2626aa /opcodes/arc-dis.c
parent70e0ee1a27389a69a4d26ded71dc70201e4d4a33 (diff)
downloadgdb-4ad3b7ef02a26744c4f648411537e240274999fe.zip
gdb-4ad3b7ef02a26744c4f648411537e240274999fe.tar.gz
gdb-4ad3b7ef02a26744c4f648411537e240274999fe.tar.bz2
* aarch64-asm.c (aarch64_ins_ldst_reglist): Initialize
value with a default. (do_special_encoding): Likewise. (aarch64_ins_ldst_elemlist): Pre-initialize QSsize, and opcodeh2 variables with default. * arc-dis.c (write_comments_): Don't use strncat due size of state->commentBuffer pointer isn't predictable.
Diffstat (limited to 'opcodes/arc-dis.c')
-rw-r--r--opcodes/arc-dis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/opcodes/arc-dis.c b/opcodes/arc-dis.c
index 0e16cde..df842fd 100644
--- a/opcodes/arc-dis.c
+++ b/opcodes/arc-dis.c
@@ -426,8 +426,7 @@ write_comments_(struct arcDisState * state,
strcpy (state->commentBuffer, comment_prefix);
else
strcat (state->commentBuffer, ", ");
- strncat (state->commentBuffer, state->comm[i],
- sizeof (state->commentBuffer));
+ strcat (state->commentBuffer, state->comm[i]);
}
}
}