aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/modules/cpuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/modules/cpuid.c b/com32/modules/cpuid.c
index 62a756e5..d5bb7de1 100644
--- a/com32/modules/cpuid.c
+++ b/com32/modules/cpuid.c
@@ -42,7 +42,7 @@ int main(int argc, char *argv[])
}
leaf = strtoul(argv[1], NULL, 0);
- counter = (argv > 2) ? strtoul(argv[2], NULL, 0) : 0;
+ counter = (argc > 2) ? strtoul(argv[2], NULL, 0) : 0;
if (!cpu_has_eflag(EFLAGS_ID)) {
printf("The CPUID instruction is not supported\n");