CBouquetList/CTPSelectHandler: try to fix possible format-overflow errors

Compiler error: [-Werror=format-overflow=]
This commit is contained in:
2018-03-02 23:16:15 +01:00
parent 35196222aa
commit 2fd4dee2b0
2 changed files with 2 additions and 2 deletions

View File

@@ -2058,7 +2058,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &actionkey)
int i = menu.getItemsCount();
transponder_list_t &select_transponders = CServiceManager::getInstance()->GetSatelliteTransponders(position);
for (transponder_list_t::iterator tI = select_transponders.begin(); tI != select_transponders.end(); ++tI) {
sprintf(cnt, "%d", i);
snprintf(cnt, sizeof(cnt), "%d", i);
transponder & t = tI->second;
if(!old_selected && ct == t)