tests/test_x86: prefix[] size is now 4, not 5

This commit is contained in:
Nguyen Anh Quynh 2014-06-20 13:55:24 +08:00
parent f3a9659cd5
commit d948dd42b8
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ static void print_insn_detail(csh ud, cs_mode mode, cs_insn *ins)
x86 = &(ins->detail->x86); x86 = &(ins->detail->x86);
print_string_hex("\tPrefix:", x86->prefix, 5); print_string_hex("\tPrefix:", x86->prefix, 4);
if (x86->segment != X86_REG_INVALID) if (x86->segment != X86_REG_INVALID)
printf("\tSegment override: %s\n", cs_reg_name(handle, x86->segment)); printf("\tSegment override: %s\n", cs_reg_name(handle, x86->segment));