mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
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:
@@ -65,8 +65,8 @@
|
||||
|
||||
//extern std::map<transponder_id_t, transponder> select_transponders;
|
||||
extern Zapit_config zapitCfg;
|
||||
extern char zapit_lat[20];
|
||||
extern char zapit_long[20];
|
||||
extern char zapit_lat[21];
|
||||
extern char zapit_long[21];
|
||||
|
||||
//static int all_usals = 1;
|
||||
//sat_iterator_t sit;
|
||||
@@ -879,8 +879,8 @@ int CScanSetup::showScanMenuFrontendSetup()
|
||||
|
||||
int res = setupMenu->exec(NULL, "");
|
||||
|
||||
strncpy(zapit_lat, zapit_lat_str.c_str(), sizeof(zapit_lat));
|
||||
strncpy(zapit_long, zapit_long_str.c_str(), sizeof(zapit_long));
|
||||
strncpy(zapit_lat, zapit_lat_str.c_str(), sizeof(zapit_lat)-1);
|
||||
strncpy(zapit_long, zapit_long_str.c_str(), sizeof(zapit_long)-1);
|
||||
|
||||
delete setupMenu;
|
||||
if (fe_restart) {
|
||||
|
Reference in New Issue
Block a user