diff --git a/sinqEPICSApp/src/EuroMoveDriver.cpp b/sinqEPICSApp/src/EuroMoveDriver.cpp index 67da0fb..f5f3641 100644 --- a/sinqEPICSApp/src/EuroMoveDriver.cpp +++ b/sinqEPICSApp/src/EuroMoveDriver.cpp @@ -5,7 +5,7 @@ USAGE... Motor driver support for the EuroMove motor controller from LLB. This is a driver for the EuroMove motor controller from LLB. This device talks to us either via GPIB or USB. The controller is fairly simple. It can control quite a number of motors. -Reworked in 06/2021 to work with the Prologix GPIV-Ethernte converter +Reworked in 06/2021 to work with the Prologix GPIV-Ethernet converter mark.koennecke@psi.ch */ @@ -58,7 +58,7 @@ EuroMoveController::EuroMoveController(const char *portName, const char *EuroMov /* Save gpib address and prepare addr string */ this->gpibAddr = gpibAddr; - snprintf(addrCommand,strlen(addrCommand), "++addr %d", gpibAddr); + snprintf(this->addrCommand,sizeof(addrCommand), "++addr %d", gpibAddr); /* Configure the Prologix interface to our liking