From 37be6919aa75ccbe2dcd9515613e5e6575e262df Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 27 Mar 2013 20:49:12 +0000 Subject: [PATCH] Add required string length for C-to-Fortran calling sequence for stdmsg_(). git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3114 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 2 +- mainwindow.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 451ba5321..9cebdf704 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1188,7 +1188,7 @@ void MainWindow::readFromStdout() //readFromStdout ui->decodedTextBrowser->setTextCursor(cursor); QString msg=t.mid(34,22); - bool b=stdmsg_(msg.toAscii().constData()); + bool b=stdmsg_(msg.toAscii().constData(),22); QStringList w=msg.split(" ",QString::SkipEmptyParts); if(b and w[0]==m_myCall) { QString tt=w[2]; diff --git a/mainwindow.h b/mainwindow.h index 747ce365f..d8ceaedea 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -306,7 +306,7 @@ void symspec_(int* k, int* ntrperiod, int* nsps, int* ingain, int* nb, void genjt9_(char* msg, int* ichk, char* msgsent, int itone[], int* itext, int len1, int len2); -bool stdmsg_(const char* msg); +bool stdmsg_(const char* msg, int len); void azdist_(char* MyGrid, char* HisGrid, double* utch, int* nAz, int* nEl, int* nDmiles, int* nDkm, int* nHotAz, int* nHotABetter,