diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2012-10-18 06:53:16 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2012-10-18 06:53:16 +0000 |
commit | f0c669703b88ba5d4570d2c14cff8b210c33bae9 (patch) | |
tree | 20e0d3a1764607c105826a563a7968b36d70921e /opcodes/arc-dis.c | |
parent | da9d476b5b506c658c93b0895d888cb27d77bc54 (diff) | |
download | binutils-redhat-f0c669703b88ba5d4570d2c14cff8b210c33bae9.tar.gz |
* 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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/opcodes/arc-dis.c b/opcodes/arc-dis.c index 0e16cde239..df842fd7ca 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]); } } } |