From c8c4ae38a22d9aee14b6664a633588b837e590bd Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 12 May 2010 21:18:09 +0200 Subject: [PATCH] cpuid: Typo between argv & argc argv isn't a number ;) --- com32/modules/cpuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com32/modules/cpuid.c b/com32/modules/cpuid.c index 62a756e..d5bb7de 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"); -- 2.7.4