diff --git a/src/gui/motorcontrol.cpp b/src/gui/motorcontrol.cpp index b242479ca..d26a22b04 100644 --- a/src/gui/motorcontrol.cpp +++ b/src/gui/motorcontrol.cpp @@ -118,7 +118,7 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &) CZapitClient::commandSetScanSatelliteList sat; sat.position = CServiceManager::getInstance()->GetSatellitePosition(scansettings.satName); - strncpy(sat.satName, scansettings.satName.c_str(), sizeof(sat.satName)); + strncpy(sat.satName, scansettings.satName.c_str(), sizeof(sat.satName)-1); satList.push_back(sat); satellite_map_t & satmap = frontend->getSatellites();