From bd70b45d251aa2a589dad231bd5b348ee4e975cf Mon Sep 17 00:00:00 2001 From: max_10 Date: Sun, 19 Dec 2021 23:12:03 +0100 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/30b23be80983ca0bb778383a3e9e7081ddad8c3e Author: max_10 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 --- src/gui/scan_setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index c24de7220..9c3b3d60d 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -2072,7 +2072,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &actionkey) { std::map tmplist; std::map::iterator tmpI; - char cnt[5]; + char cnt[11]; int select = -1; static int old_selected = 0; static t_satellite_position old_position = 0;