mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
-fixes strncpy & buf size
This commit is contained in:
@@ -138,7 +138,7 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
||||
for(sit = satellitePositions.begin(); sit != satellitePositions.end(); sit++) {
|
||||
if(!strcmp(sit->second.name.c_str(),scansettings.satNameNoDiseqc)) {
|
||||
sat.position = sit->first;
|
||||
strncpy(sat.satName, scansettings.satNameNoDiseqc, 50);
|
||||
strncpy(sat.satName, scansettings.satNameNoDiseqc, 49);
|
||||
satList.push_back(sat);
|
||||
if(sit->second.motor_position)
|
||||
motorPosition = sit->second.motor_position;
|
||||
@@ -148,7 +148,7 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
||||
#endif
|
||||
/* send satellite list to zapit */
|
||||
sat.position = CServiceManager::getInstance()->GetSatellitePosition(scansettings.satNameNoDiseqc);
|
||||
strncpy(sat.satName, scansettings.satNameNoDiseqc, 50);
|
||||
strncpy(sat.satName, scansettings.satNameNoDiseqc, 49);
|
||||
satList.push_back(sat);
|
||||
|
||||
satellite_map_t & satmap = frontend->getSatellites();
|
||||
|
Reference in New Issue
Block a user