From 1e6ce86943a01fd5ac0d14680ad826fceb35553f Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Fri, 10 Jan 2020 22:30:25 +0100 Subject: [PATCH] infoviewer.cpp: increase destination arrays to avoid possible truncation Signed-off-by: MarkusVolk Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/ab063cb04cd2d64384c57a4d1fca66b87692e071 Author: Markus Volk Date: 2020-01-10 (Fri, 10 Jan 2020) ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index c6983f9a7..6f85d644a 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -340,7 +340,7 @@ void CInfoViewer::showRecordIcon (const bool show) int icon_y = box_y + box_h/2 - icon_h/2; int txt_y = box_y + (box_h + txt_h)/2; - char records_msg[8]; + char records_msg[14]; if (rec_mode == CRecordManager::RECMODE_REC) { @@ -1670,7 +1670,7 @@ void CInfoViewer::showSNR () y_freq -= g_SignalFont->getHeight()/2; //half line up to center freq vertically int y_numbox = numbox->getYPos(); if ((newfreq && chanready) || SDT_freq_update) { - char freq[20]; + char freq[22]; newfreq = false; std::string polarisation = "";