diff options
Diffstat (limited to 'arch/x86/tools')
-rw-r--r-- | arch/x86/tools/insn_sanity.c | 2 | ||||
-rw-r--r-- | arch/x86/tools/test_get_len.c | 2 |
2 files changed, 2 insertions, 2 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) | |||
254 | continue; | 254 | continue; |
255 | 255 | ||
256 | /* Decode an instruction */ | 256 | /* Decode an instruction */ |
257 | insn_init(&insn, insn_buf, x86_64); | 257 | insn_init(&insn, insn_buf, sizeof(insn_buf), x86_64); |
258 | insn_get_length(&insn); | 258 | insn_get_length(&insn); |
259 | 259 | ||
260 | if (insn.next_byte <= insn.kaddr || | 260 | if (insn.next_byte <= insn.kaddr || |
diff --git a/arch/x86/tools/test_get_len.c b/arch/x86/tools/test_get_len.c index 13403fc95a96..56f04db0c9c0 100644 --- a/arch/x86/tools/test_get_len.c +++ b/arch/x86/tools/test_get_len.c | |||
@@ -149,7 +149,7 @@ int main(int argc, char **argv) | |||
149 | break; | 149 | break; |
150 | } | 150 | } |
151 | /* Decode an instruction */ | 151 | /* Decode an instruction */ |
152 | insn_init(&insn, insn_buf, x86_64); | 152 | insn_init(&insn, insn_buf, sizeof(insn_buf), x86_64); |
153 | insn_get_length(&insn); | 153 | insn_get_length(&insn); |
154 | if (insn.length != nb) { | 154 | if (insn.length != nb) { |
155 | warnings++; | 155 | warnings++; |