Skip to content

Commit

Permalink
x86: do not use non-standard strlcat & strlcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Jan 21, 2014
1 parent 66c8d5d commit b9ff3aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/X86/X86Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -6668,9 +6668,9 @@ void X86_insn_combine(cs_struct *h, cs_insn *insn, cs_insn *prev)
prev->id = insn->id;
prev->size += insn->size;
memmove(prev->bytes+1, insn->bytes, sizeof(insn->bytes) - 1);
strlcat(prev->mnemonic, " ", sizeof(insn->mnemonic));
strlcat(prev->mnemonic, insn->mnemonic, sizeof(insn->mnemonic));
strlcpy(prev->op_str, insn->op_str, sizeof(insn->op_str));
strcat(prev->mnemonic, " ");
strcat(prev->mnemonic, insn->mnemonic);
strcpy(prev->op_str, insn->op_str);

if (h->detail) {
// save old prefix to copy it back later
Expand Down

0 comments on commit b9ff3aa

Please sign in to comment.