Guard against array overrun.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6771 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Steven Franke 2016-06-12 02:55:43 +00:00
parent dbe32f87a2
commit 9d75e1d9d1

View File

@ -87,10 +87,11 @@ subroutine detectmsk144(cbig,n,pchk_file,lines,nmessages,nutc)
first=.false.
endif
nstep=694 ! fill the detmet, detsnr, detferr arrays
nstep=693 ! fill the detmet, detsnr, detferr arrays
do istp=1,nstep
ns=1+256*(istp-1)
ne=ns+NPTS-1
if( ne .gt. n ) exit
tt=(ns+ne)/2.0/12000.0
cdat=cbig(ns:ne)