From 333be113d667c4980af9865d011d6f810fbd2d59 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Fri, 27 Sep 2013 15:27:32 -0400 Subject: [PATCH] [UDP-HTTP] Base 10 for numbers from command line --- owlps-udp-to-http/owlps-udp-to-http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owlps-udp-to-http/owlps-udp-to-http.c b/owlps-udp-to-http/owlps-udp-to-http.c index 75befea..fcfce22 100644 --- a/owlps-udp-to-http/owlps-udp-to-http.c +++ b/owlps-udp-to-http/owlps-udp-to-http.c @@ -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 ;