Fixed scanf format in parse_port_string()