mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
network_setup.cpp: fix -Wformat-overflow warning
Origin commit data
------------------
Branch: ni/coolstream
Commit: 54679d1e92
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-01-24 (Fri, 24 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -825,14 +825,14 @@ int CNetworkSetup::showWlanList()
|
||||
CMenuWidget wlist(LOCALE_MAINSETTINGS_NETWORK, NEUTRINO_ICON_NETWORK, width);
|
||||
wlist.addIntroItems(LOCALE_NETWORKMENU_SSID_SCAN); //intros
|
||||
|
||||
char cnt[5];
|
||||
char cnt[10];
|
||||
int select = -1;
|
||||
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
||||
|
||||
std::string option[networks.size()];
|
||||
for (unsigned i = 0; i < networks.size(); ++i) {
|
||||
sprintf(cnt, "%d", i);
|
||||
|
||||
|
||||
option[i] = networks[i].qual;
|
||||
option[i] += ", ";
|
||||
option[i] += networks[i].channel;
|
||||
|
Reference in New Issue
Block a user