Removed .- from sanity check, not needed
This commit is contained in:
parent
73b9e160b2
commit
6f21b1b08f
@ -60,7 +60,7 @@ int checkInput(char input[])
|
|||||||
{
|
{
|
||||||
int netmask;
|
int netmask;
|
||||||
/* Sanity check the user input */
|
/* Sanity check the user input */
|
||||||
if( strspn(input, "0123456789.-\n") == strlen(input) )
|
if( strspn(input, "0123456789\n") == strlen(input) )
|
||||||
{
|
{
|
||||||
netmask = atoi(input);
|
netmask = atoi(input);
|
||||||
if (netmask >= 0 && netmask <= 32)
|
if (netmask >= 0 && netmask <= 32)
|
||||||
@ -112,3 +112,4 @@ void printHelp(char progname[])
|
|||||||
"argument.\n");
|
"argument.\n");
|
||||||
printf("Examle: %s 24\n", progname);
|
printf("Examle: %s 24\n", progname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user