mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CBouquetList/CTPSelectHandler: try to fix possible format-overflow errors
Compiler error: [-Werror=format-overflow=]
This commit is contained in:
@@ -670,7 +670,7 @@ void CBouquetList::paintItem(int pos)
|
||||
|
||||
if (npos < (int) Bouquets.size()) {
|
||||
char num[10];
|
||||
sprintf((char*) num, "%d", npos + 1);
|
||||
snprintf(num, sizeof(num), "%d", npos + 1);
|
||||
int iw = 0, ih = 0;
|
||||
if ((g_settings.epg_scan == CEpgScan::SCAN_SEL) &&
|
||||
Bouquets[npos]->zapitBouquet && Bouquets[npos]->zapitBouquet->bScanEpg) {
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user