aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2010-05-12 21:18:09 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2010-05-12 21:31:30 +0200
commit8fd94912c3ad300bdab2929603d27ae20de5914b (patch)
tree646794d3b6e97d83dc00dba9dfaee528f8abe54e
parent898ed4e8b4172a1dcf5b71a6228115a63e7dbfaf (diff)
downloadcontrib-8fd94912c3ad300bdab2929603d27ae20de5914b.tar.gz
contrib-8fd94912c3ad300bdab2929603d27ae20de5914b.tar.xz
contrib-8fd94912c3ad300bdab2929603d27ae20de5914b.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");