Make the escaped com port really work

https://github.com/Hamlib/Hamlib/issues/337
pull/345/head
Michael Black W9MDB 2020-07-04 12:43:46 -05:00
rodzic 65eab6c430
commit 5007765d10
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1393,7 +1393,7 @@ int HAMLIB_API parse_hoststr(char *hoststr, char host[256], char port[6])
if (strncasecmp(hoststr, "com", 3) == 0) { return -1; }
// escaped COM port like \\.\COM3
if (strstr(hoststr,"\\")) { return -1; }
if (strstr(hoststr,"\\\\.\\")) { return -1; }
// bracketed IPV6 with optional port
int n = sscanf(hoststr, "[%255[^]]]:%5s", host, port);