summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utility/vbutil_kernel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utility/vbutil_kernel.c b/utility/vbutil_kernel.c
index 821f7519..757896aa 100644
--- a/utility/vbutil_kernel.c
+++ b/utility/vbutil_kernel.c
@@ -872,7 +872,8 @@ int main(int argc, char* argv[]) {
break;
case OPT_ARCH:
- if (!strcasecmp(optarg, "x86"))
+ /* check the first 3 characters to also detect x86_64 */
+ if (!strncasecmp(optarg, "x86", 3))
arch = ARCH_X86;
else if (!strcasecmp(optarg, "arm"))
arch = ARCH_ARM;