From f2586d0acbe3cd4b683bbd8e85dbbdd50255e32c Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Sat, 6 Mar 2021 16:56:22 -0600 Subject: [PATCH] Fix macro in usb_port.c --- src/usb_port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usb_port.c b/src/usb_port.c index ab4af6ae1..53b287f2e 100644 --- a/src/usb_port.c +++ b/src/usb_port.c @@ -220,7 +220,7 @@ static libusb_device_handle *find_and_open_device(const hamlib_port_t *port) */ int usb_port_open(hamlib_port_t *port) { - static char pathname[FILPATHLEN]; + static char pathname[HAMLIB_FILPATHLEN]; libusb_device_handle *udh; char *p, *q; int r; @@ -245,7 +245,7 @@ int usb_port_open(hamlib_port_t *port) /* Extract VID/PID/Vendor/Product name from pathname. */ /* Duplicate the string since we may modify it. */ strncpy(pathname, port->pathname, sizeof pathname); - pathname[FILPATHLEN - 1] = '\0'; + pathname[HAMLIB_FILPATHLEN - 1] = '\0'; p = pathname; q = strchr(p, ':');