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

@@ -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) {