From fd1e72f009abfdc74bcf773e57cd5c9fa8b57a42 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Mon, 22 Jun 2020 07:48:09 -0500 Subject: [PATCH] Fix com port device opening https://github.com/Hamlib/Hamlib/issues/298 --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index 874e36a8e..33d547550 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1386,7 +1386,7 @@ int HAMLIB_API parse_hoststr(char *hoststr, char host[256], char port[6]) // Handle device names 1st if (strstr(hoststr, "/dev")) return -1; - if (strncasecmp(hoststr, "com", 3)) return -1; + if (strncasecmp(hoststr, "com", 3)==0) return -1; // bracketed IPV6 with optional port int n = sscanf(hoststr, "[%255[^]]]:%5s", host, port);