Don't let index exceed array bounds.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2735 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2012-11-15 16:43:42 +00:00
parent d24842271b
commit b0c0af3a87
2 changed files with 4 additions and 2 deletions

View File

@ -122,7 +122,9 @@ subroutine decoder(ntrSeconds,ndepth,nRxLog,c00)
ndecoded=1
endif
endif
ccfred(i-10:i+10)=0.
i1=max(ia,i-10)
i2=min(ib,i+10)
ccfred(i1:i2)=0.
if(maxval(ccfred(ia:ib)).gt.3.0) go to 10
if(fgood.eq.0.0) then

View File

@ -1,4 +1,4 @@
//------------------------------------------------------------- MainWindow
//-------------------------------------------------------------- MainWindow
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "devsetup.h"