[syslinux:master] cpuid: Typo between argv & argc

syslinux-bot for Erwan Velu erwanaliasr1 at gmail.com
Wed May 12 15:00:36 PDT 2010


Commit-ID:  c8c4ae38a22d9aee14b6664a633588b837e590bd
Gitweb:     http://syslinux.zytor.com/commit/c8c4ae38a22d9aee14b6664a633588b837e590bd
Author:     Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Wed, 12 May 2010 21:18:09 +0200
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Wed, 12 May 2010 14:57:03 -0700

cpuid: Typo between argv & argc

argv isn't a number ;)


---
 com32/modules/cpuid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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");



More information about the Syslinux-commits mailing list