--- main/netsock2.c 2013-03-04 17:26:49.375274210 +0000 +++ netsock2-new.c 2013-03-04 17:27:00.127274075 +0000 @@ -163,6 +163,10 @@ } } + if(*port && **port == ' ') { + *port++; + } + if(*port && (s = strchr(*port, ' '))) { + *s = '\0'; + } + switch (flags & PARSE_PORT_MASK) { case PARSE_PORT_IGNORE: *port = NULL;