From 0e7170fe9810654ca77554f0507d14729a63fdb6 Mon Sep 17 00:00:00 2001 From: MarkusVolk Date: Fri, 24 Jan 2020 15:58:24 +0100 Subject: [PATCH] network_setup.cpp: fix -Wformat-overflow warning --- src/gui/network_setup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/network_setup.cpp b/src/gui/network_setup.cpp index 5cd8e4288..dacd90f1c 100644 --- a/src/gui/network_setup.cpp +++ b/src/gui/network_setup.cpp @@ -796,14 +796,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;