diff --git a/cpuid.c b/cpuid.c index 3cc7cb9..334f3f8 100644 --- a/cpuid.c +++ b/cpuid.c @@ -184,7 +184,7 @@ int main(int argc, char *argv[]) exit(127); } else if (argc == 2) { cpu = strtoul(argv[1], &endptr, 0); - if (*endptr || cpu > 255) { + if (*endptr || cpu > 5119) { usage(); exit(127); } diff --git a/rdmsr.c b/rdmsr.c index d1acca5..b19986a 100644 --- a/rdmsr.c +++ b/rdmsr.c @@ -169,7 +169,7 @@ int main(int argc, char *argv[]) break; case 'p': arg = strtoul(optarg, &endarg, 0); - if (*endarg || arg > 255) { + if (*endarg || arg > 5119) { usage(); exit(127); } diff --git a/wrmsr.c b/wrmsr.c index af16a8d..b32cc3e 100644 --- a/wrmsr.c +++ b/wrmsr.c @@ -103,7 +103,7 @@ int main(int argc, char *argv[]) break; case 'p': arg = strtoul(optarg, &endarg, 0); - if (*endarg || arg > 255) { + if (*endarg || arg > 5119) { usage(); exit(127); }