From 96b43ae337be6282bea33fe494589729af00c668 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Mon, 16 Apr 2018 10:37:22 -0500 Subject: [PATCH] Fix compile warnings for flex --- flexradio/dttsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexradio/dttsp.c b/flexradio/dttsp.c index e64a378dd..6ce838054 100644 --- a/flexradio/dttsp.c +++ b/flexradio/dttsp.c @@ -489,7 +489,7 @@ int dttsp_open(RIG *rig) p = getenv ( "SDR_METERPATH" ); if (!p) { meterpath = priv->meter_port.pathname; - strncpy(meterpath, rig->state.rigport.pathname, FILPATHLEN - 1); + snprintf(meterpath, FILPATHLEN, "%s", rig->state.rigport.pathname); if (rig->state.rigport.type.rig == RIG_PORT_UDP_NETWORK) { p = strrchr(meterpath, ':'); if (p)