From f821f32562c2c9d2d50584179bbf39e7c7b9c4b7 Mon Sep 17 00:00:00 2001 From: Steve Franke Date: Tue, 10 Jul 2018 00:13:56 +0000 Subject: [PATCH] Fix the crash that we were seeing on linux. The string s[41] was too short to include the null termination. --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 3cabae51f..0da64a70d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3726,7 +3726,7 @@ void MainWindow::guiUpdate() astroUpdate (); if(m_transmitting) { - char s[41]; + char s[42]; if(m_config.bFox() and ui->tabWidget->currentIndex()==2) { sprintf(s,"Tx: %d Slots",foxcom_.nslots); } else {