aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2010-05-12 21:18:09 +0200
committerH. Peter Anvin <hpa@linux.intel.com>2010-05-12 14:57:03 -0700
commitc8c4ae38a22d9aee14b6664a633588b837e590bd (patch)
tree646794d3b6e97d83dc00dba9dfaee528f8abe54e
parenta52a8e0ff29391d54cc4316a09e9c18f654f4719 (diff)
downloadsyslinux-c8c4ae38a22d9aee14b6664a633588b837e590bd.tar.gz
syslinux-c8c4ae38a22d9aee14b6664a633588b837e590bd.tar.xz
syslinux-c8c4ae38a22d9aee14b6664a633588b837e590bd.zip
cpuid: Typo between argv & argc
argv isn't a number ;)
-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");