mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
network_setup.cpp: fix -Wformat-overflow warning
This commit is contained in:
@@ -796,14 +796,14 @@ int CNetworkSetup::showWlanList()
|
|||||||
CMenuWidget wlist(LOCALE_MAINSETTINGS_NETWORK, NEUTRINO_ICON_NETWORK, width);
|
CMenuWidget wlist(LOCALE_MAINSETTINGS_NETWORK, NEUTRINO_ICON_NETWORK, width);
|
||||||
wlist.addIntroItems(LOCALE_NETWORKMENU_SSID_SCAN); //intros
|
wlist.addIntroItems(LOCALE_NETWORKMENU_SSID_SCAN); //intros
|
||||||
|
|
||||||
char cnt[5];
|
char cnt[10];
|
||||||
int select = -1;
|
int select = -1;
|
||||||
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
||||||
|
|
||||||
std::string option[networks.size()];
|
std::string option[networks.size()];
|
||||||
for (unsigned i = 0; i < networks.size(); ++i) {
|
for (unsigned i = 0; i < networks.size(); ++i) {
|
||||||
sprintf(cnt, "%d", i);
|
sprintf(cnt, "%d", i);
|
||||||
|
|
||||||
option[i] = networks[i].qual;
|
option[i] = networks[i].qual;
|
||||||
option[i] += ", ";
|
option[i] += ", ";
|
||||||
option[i] += networks[i].channel;
|
option[i] += networks[i].channel;
|
||||||
|
Reference in New Issue
Block a user