[GRASS-SVN] r72121 - grass/branches/releasebranch_7_4/imagery/i.atcorr
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 25 05:19:10 PST 2018
Author: mmetz
Date: 2018-01-25 05:19:10 -0800 (Thu, 25 Jan 2018)
New Revision: 72121
Modified:
grass/branches/releasebranch_7_4/imagery/i.atcorr/aerosolmodel.cpp
Log:
i.atcorr: fix index out of bounds
Modified: grass/branches/releasebranch_7_4/imagery/i.atcorr/aerosolmodel.cpp
===================================================================
--- grass/branches/releasebranch_7_4/imagery/i.atcorr/aerosolmodel.cpp 2018-01-24 20:53:29 UTC (rev 72120)
+++ grass/branches/releasebranch_7_4/imagery/i.atcorr/aerosolmodel.cpp 2018-01-25 13:19:10 UTC (rev 72121)
@@ -616,7 +616,7 @@
sixs_aer.gasym[i] = 0.f;
sixs_aer.phase[i] = 0.f;
- for (int k = 1; k <= 83; ++k) sixs_sos.phasel[i][k] = 0.f;
+ for (int k = 0; k < 83; ++k) sixs_sos.phasel[i][k] = 0.f;
}
/* return if iear = 0 */
More information about the grass-commit
mailing list