diff --git a/comms/tlf/Makefile b/comms/tlf/Makefile index dbba3595529..3da13da4b9c 100644 --- a/comms/tlf/Makefile +++ b/comms/tlf/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.17 2019/07/12 20:43:48 sthen Exp $ +# $OpenBSD: Makefile,v 1.18 2022/01/02 20:23:03 uaa Exp $ PORTROACH= skipv:bm_start @@ -6,7 +6,7 @@ COMMENT= radio contest logger DISTNAME= tlf-1.2.1 CATEGORIES= comms hamradio -REVISION= 1 +REVISION= 2 HOMEPAGE= http://home.iae.nl/users/reinc/TLF-0.2.html diff --git a/comms/tlf/patches/patch-src_sendqrg_c b/comms/tlf/patches/patch-src_sendqrg_c new file mode 100644 index 00000000000..dccecf80bae --- /dev/null +++ b/comms/tlf/patches/patch-src_sendqrg_c @@ -0,0 +1,34 @@ +--- src/sendqrg.c.orig Thu May 15 20:59:25 2014 ++++ src/sendqrg.c Sun Jan 2 19:45:45 2022 +@@ -24,6 +24,10 @@ + + #include "startmsg.h" + ++#ifndef HAMLIB_FILPATHLEN ++#define HAMLIB_FILPATHLEN FILPATHLEN ++#endif ++ + void send_bandswitch(int trxqrg); + + int sendqrg(void) +@@ -118,7 +122,7 @@ int init_tlf_rig(void) + if (strlen(rigportname) > 1) { + rigportname[strlen(rigportname) - 1] = '\0'; // remove '\n' + strncpy(my_rig->state.rigport.pathname, rigportname, +- FILPATHLEN); ++ HAMLIB_FILPATHLEN); + } else + { + showmsg("Missing rig port name!"); +@@ -133,9 +137,9 @@ int init_tlf_rig(void) + if (dcd_type != RIG_DCD_NONE) + my_rig->state.dcdport.type.dcd = dcd_type; + if (ptt_file) +- strncpy(my_rig->state.pttport.pathname, ptt_file, FILPATHLEN); ++ strncpy(my_rig->state.pttport.pathname, ptt_file, HAMLIB_FILPATHLEN); + if (dcd_file) +- strncpy(my_rig->state.dcdport.pathname, dcd_file, FILPATHLEN); ++ strncpy(my_rig->state.dcdport.pathname, dcd_file, HAMLIB_FILPATHLEN); + + my_rig->state.rigport.parm.serial.rate = serial_rate; +