mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-16 09:53:36 +02:00
CBouquetList/CTPSelectHandler: try to fix possible format-overflow errors
Compiler error: [-Werror=format-overflow=]
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4c2e9bb878
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-03-02 (Fri, 02 Mar 2018)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -680,7 +680,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) {
|
||||
|
Reference in New Issue
Block a user