Hamlib : Restore usage of FILPATHLEN which valid for both v2 and v4 thanks to commit 'HAMLIB patch for updated define'

This commit is contained in:
vsonnier 2021-08-14 09:06:27 +02:00
parent 5c78738d33
commit 29e9144aa5

View File

@ -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;
}
}