diff --git a/src/rig/RigThread.cpp b/src/rig/RigThread.cpp index bd21c3d..f266cdd 100644 --- a/src/rig/RigThread.cpp +++ b/src/rig/RigThread.cpp @@ -112,7 +112,7 @@ void RigThread::run() { std::cout << "Rig thread starting." << std::endl; rig = rig_init(rigModel); - strncpy(rig->state.rigport.pathname, rigFile.c_str(), HAMLIB_FILPATHLEN - 1); + strncpy(rig->state.rigport.pathname, rigFile.c_str(), FILPATHLEN - 1); rig->state.rigport.parm.serial.rate = serialRate; retcode = rig_open(rig); @@ -271,4 +271,4 @@ bool RigThread::getErrorState() { std::string RigThread::getErrorMessage() { return errorMessage; -} \ No newline at end of file +}