add support for FILPATHLEN -> HAMLIB_FILPATHLEN change at hamlib-4.2

ok sthen@
This commit is contained in:
uaa 2022-01-02 20:23:48 +00:00
parent f6deba442b
commit ede447a05a
2 changed files with 24 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.31 2020/01/26 11:14:30 jasper Exp $
# $OpenBSD: Makefile,v 1.32 2022/01/02 20:23:48 uaa Exp $
COMMENT= logbook program for amateur radio operators
DISTNAME= xlog-2.0.15
CATEGORIES= comms hamradio
REVISION= 1
REVISION= 2
HOMEPAGE= http://www.nongnu.org/xlog/

View File

@ -0,0 +1,22 @@
--- src/hamlib-utils.c.orig Fri Dec 30 04:02:44 2016
+++ src/hamlib-utils.c Sun Jan 2 20:24:36 2022
@@ -45,6 +45,10 @@
#include "../data/pixmaps/s8.xpm"
#include "../data/pixmaps/s9.xpm"
+#ifndef HAMLIB_FILPATHLEN
+#define HAMLIB_FILPATHLEN FILPATHLEN
+#endif
+
struct rig_id {
const gint modelnr;
const gchar *modelname;
@@ -168,7 +172,7 @@ start_hamlib (gint rigid, gchar *device, gint debugmod
update_statusbar (temp);
}
}
- strncpy (myrig->state.rigport.pathname, device, FILPATHLEN);
+ strncpy (myrig->state.rigport.pathname, device, HAMLIB_FILPATHLEN);
retcode = rig_open (myrig);
if (retcode != RIG_OK)
{