Skip to content

Commit

Permalink
Replaced snprintf with cs_snprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
tandasat committed Apr 1, 2016
1 parent 8ae679e commit aba6117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/AArch64/AArch64BaseInfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ void A64SysRegMapper_toString(A64SysRegMapper *S, uint32_t Bits, bool *Valid, ch
Op2S = utostr(Op2, false);

//printf("Op1S: %s, CRnS: %s, CRmS: %s, Op2S: %s\n", Op1S, CRnS, CRmS, Op2S);
dummy = sprintf(result, "s3_%s_c%s_c%s_%s", Op1S, CRnS, CRmS, Op2S);
dummy = cs_snprintf(result, 128, "s3_%s_c%s_c%s_%s", Op1S, CRnS, CRmS, Op2S);
(void)dummy;

cs_mem_free(Op1S);
Expand Down

0 comments on commit aba6117

Please sign in to comment.