24 lines
704 B
Diff
24 lines
704 B
Diff
Index: xlog-2.0.22/src/hamlib-utils.c
|
|
===================================================================
|
|
--- xlog-2.0.22.orig/src/hamlib-utils.c
|
|
+++ xlog-2.0.22/src/hamlib-utils.c
|
|
@@ -45,6 +45,10 @@
|
|
#include "../data/pixmaps/s8.xpm"
|
|
#include "../data/pixmaps/s9.xpm"
|
|
|
|
+#ifndef HAMLIB_FILPATHLEN
|
|
+#define HAMLIB_FILPATHLEN FILEPATHLEN
|
|
+#endif
|
|
+
|
|
struct rig_id {
|
|
const gint modelnr;
|
|
const gchar *modelname;
|
|
@@ -168,7 +172,7 @@ start_hamlib (gint rigid, gchar *device,
|
|
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)
|
|
{
|