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:
Markus Volk
2020-01-24 22:04:09 +01:00
committed by vanhofen
parent cddcd36e17
commit a0da47ee2d

View File

@@ -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;