scan_setup: fix possible format-truncation error

truncated writing between 1 and 10 bytes into a region of size 5


Origin commit data
------------------
Branch: ni/coolstream
Commit: 30b23be809
Author: max_10 <max_10@gmx.de>
Date: 2021-12-19 (Sun, 19 Dec 2021)

Origin message was:
------------------
- scan_setup: fix possible format-truncation error
truncated writing between 1 and 10 bytes into a region of size 5


------------------
This commit was generated by Migit
This commit is contained in:
max_10
2021-12-19 23:12:03 +01:00
committed by vanhofen
parent 62363da3ea
commit bd70b45d25

View File

@@ -2072,7 +2072,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &actionkey)
{
std::map<int, transponder> tmplist;
std::map<int, transponder>::iterator tmpI;
char cnt[5];
char cnt[11];
int select = -1;
static int old_selected = 0;
static t_satellite_position old_position = 0;