* 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.
This commit is contained in:
Kai Tietz
2012-10-18 06:53:16 +00:00
parent 70e0ee1a27
commit 4ad3b7ef02
3 changed files with 16 additions and 7 deletions

View File

@@ -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]);
}
}
}