diff --git a/src/gui/bouquetlist.cpp b/src/gui/bouquetlist.cpp index cf5a28620..d0030a324 100644 --- a/src/gui/bouquetlist.cpp +++ b/src/gui/bouquetlist.cpp @@ -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) { diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index 665fc4626..bd4edfa58 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -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)