Skip to content

Commit

Permalink
normalize in issue mode (capstone-engine#1414)
Browse files Browse the repository at this point in the history
* normalize tab character in cs

* normalize in issue mode
  • Loading branch information
HarDToBelieve authored and aquynh committed Mar 3, 2019
1 parent 9448bde commit f707519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion suite/cstest/src/capstone_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void test_single_issue(csh *handle, cs_mode mode, char *line, int detail)
int i, count, j;
unsigned char *code;
cs_insn *insn;
char *cs_result, *tmp;
char *cs_result, *tmp, *p;
char **offset_opcode;
int size_offset_opcode;
unsigned long offset;
Expand Down Expand Up @@ -333,6 +333,7 @@ void test_single_issue(csh *handle, cs_mode mode, char *line, int detail)
trim_str(cs_result);
add_str(&cs_result, " ;");
// list_part_cs_result = split(cs_result, " ; ", &size_part_cs_result);
for (p = list_part[1]; *p; ++p) if (*p == '\t') *p = ' ';
list_part_issue_result = split(list_part[1], " ; ", &size_part_issue_result);

for (i = 0; i < size_part_issue_result; ++i) {
Expand Down

0 comments on commit f707519

Please sign in to comment.