scan_setup: avoid unterminated strings

Signed-off-by: MarkusVolk <f_l_k@t-online.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: ee6122e2ae
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-01-14 (Tue, 14 Jan 2020)



------------------
This commit was generated by Migit
This commit is contained in:
Markus Volk
2020-01-14 21:22:46 +01:00
committed by vanhofen
parent 83c611e617
commit e32f85ac08

View File

@@ -65,8 +65,8 @@
//extern std::map<transponder_id_t, transponder> select_transponders; //extern std::map<transponder_id_t, transponder> select_transponders;
extern Zapit_config zapitCfg; extern Zapit_config zapitCfg;
extern char zapit_lat[20]; extern char zapit_lat[21];
extern char zapit_long[20]; extern char zapit_long[21];
//static int all_usals = 1; //static int all_usals = 1;
//sat_iterator_t sit; //sat_iterator_t sit;
@@ -879,8 +879,8 @@ int CScanSetup::showScanMenuFrontendSetup()
int res = setupMenu->exec(NULL, ""); int res = setupMenu->exec(NULL, "");
strncpy(zapit_lat, zapit_lat_str.c_str(), sizeof(zapit_lat)); strncpy(zapit_lat, zapit_lat_str.c_str(), sizeof(zapit_lat)-1);
strncpy(zapit_long, zapit_long_str.c_str(), sizeof(zapit_long)); strncpy(zapit_long, zapit_long_str.c_str(), sizeof(zapit_long)-1);
delete setupMenu; delete setupMenu;
if (fe_restart) { if (fe_restart) {