[UDP-HTTP] Base 10 for numbers from command line

This commit is contained in:
Matteo Cypriani 2013-09-27 15:27:32 -04:00
parent c4cf57c903
commit 333be113d6
1 changed files with 2 additions and 2 deletions

View File

@ -148,10 +148,10 @@ void parse_options(int argc, char **argv)
print_usage() ;
exit(0) ;
case 'l' :
options.result_port = strtoul(optarg, NULL, 0) ;
options.result_port = strtoul(optarg, NULL, 10) ;
break ;
case 't' :
options.http_port = strtoul(optarg, NULL, 0) ;
options.http_port = strtoul(optarg, NULL, 10) ;
break ;
case 'q' :
options.verbose = false ;