bouquetlist.cpp: increase destination array to avoid possible truncation

Signed-off-by: MarkusVolk <f_l_k@t-online.de>
This commit is contained in:
MarkusVolk
2020-01-10 06:42:12 +01:00
committed by Thilo Graf
parent df486d7697
commit b68ed042c0

View File

@@ -682,7 +682,7 @@ void CBouquetList::paintItem(int pos)
} }
if (npos < (int) Bouquets.size()) { if (npos < (int) Bouquets.size()) {
char num[10]; char num[12];
snprintf(num, sizeof(num), "%d", npos + 1); snprintf(num, sizeof(num), "%d", npos + 1);
int iw = 0, ih = 0; int iw = 0, ih = 0;
if ((g_settings.epg_scan == CEpgScan::SCAN_SEL) && if ((g_settings.epg_scan == CEpgScan::SCAN_SEL) &&