[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 65eab6c4304c1d5fedc2d
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2020-07-04 17:38:19
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via 65eab6c4304c1d5fedc2d7e22426ffa17f9ee84d (commit) from 41230fabc2a45b96948109e88607cf2e08310141 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 65eab6c4304c1d5fedc2d7e22426ffa17f9ee84d Author: Michael Black W9MDB <mdb...@ya...> Date: Sat Jul 4 12:37:26 2020 -0500 Allow for escaped COM ports like \\.\COM3 https://github.com/Hamlib/Hamlib/issues/337 diff --git a/src/misc.c b/src/misc.c index a2ef2246..4c08ad82 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1392,6 +1392,9 @@ 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; } + // bracketed IPV6 with optional port int n = sscanf(hoststr, "[%255[^]]]:%5s", host, port); ----------------------------------------------------------------------- Summary of changes: src/misc.c | 3 +++ 1 file changed, 3 insertions(+) hooks/post-receive -- Hamlib -- Ham radio control libraries |