Commit 676a011e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Minor tweak to validation of -k.

parent facf8d6c
......@@ -157,7 +157,7 @@ main(int argc, char **argv)
} else if(strcmp(*arg, "-k") == 0) {
SHIFTE();
kernel_metric = atoi(*arg);
if(kernel_metric < 0)
if(kernel_metric < 0 || kernel_metric > 0xFFFF)
goto syntax;
} else if(strcmp(*arg, "-P") == 0) {
parasitic = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment