summaryrefslogtreecommitdiff
path: root/arch/x86/tools/insn_sanity.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/tools/insn_sanity.c')
-rw-r--r--arch/x86/tools/insn_sanity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/tools/insn_sanity.c b/arch/x86/tools/insn_sanity.c
index 872eb60e7806..ba70ff232917 100644
--- a/arch/x86/tools/insn_sanity.c
+++ b/arch/x86/tools/insn_sanity.c
@@ -254,7 +254,7 @@ int main(int argc, char **argv)
continue;
/* Decode an instruction */
- insn_init(&insn, insn_buf, x86_64);
+ insn_init(&insn, insn_buf, sizeof(insn_buf), x86_64);
insn_get_length(&insn);
if (insn.next_byte <= insn.kaddr ||