From a2a49d5b22a178c50e8c4ecfdfb3a11262788776 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 20 Feb 2018 20:09:44 +0000 Subject: [PATCH] Increase size of char array s[]. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8515 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 9d2139fda..3d603085a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3615,7 +3615,7 @@ void MainWindow::guiUpdate() astroUpdate (); if(m_transmitting) { - char s[37]; + char s[41]; if(m_config.bFox() and ui->tabWidget->currentIndex()==2) { if(foxcom_.nslots==1) { sprintf(s,"Tx: %s",foxcom_.cmsg[0]); @@ -3640,9 +3640,10 @@ void MainWindow::guiUpdate() if(m_mode=="Echo") { tx_status_label.setText("Tx: ECHO"); } else { + s[40]=0; QString t{QString::fromLatin1(s)}; - if(m_mode=="FT8" and m_i3bit==1) t="Tx: RR73 NOW " + t.mid(4); - if(m_mode=="FT8" and m_i3bit==2) t="Tx: NIL NOW " + t.mid(4); +// if(m_mode=="FT8" and m_i3bit==1) t="Tx: RR73 NOW " + t.mid(4); +// if(m_mode=="FT8" and m_i3bit==2) t="Tx: NIL NOW " + t.mid(4); tx_status_label.setText(t); } }