[GRASS-SVN] r55299 - grass/trunk/raster/r.resamp.rst
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Mar 10 08:26:32 PDT 2013
Author: mmetz
Date: 2013-03-10 08:26:32 -0700 (Sun, 10 Mar 2013)
New Revision: 55299
Modified:
grass/trunk/raster/r.resamp.rst/main.c
Log:
r.resamp.rst: avoid integer overflow, cnt'd
Modified: grass/trunk/raster/r.resamp.rst/main.c
===================================================================
--- grass/trunk/raster/r.resamp.rst/main.c 2013-03-10 15:25:12 UTC (rev 55298)
+++ grass/trunk/raster/r.resamp.rst/main.c 2013-03-10 15:26:32 UTC (rev 55299)
@@ -351,7 +351,7 @@
ns_res = outhd.ns_res;
nsizc = outhd.cols;
nsizr = outhd.rows;
- disk = nsizc * nsizr * sizeof(int);
+ disk = (off_t)nsizc * nsizr * sizeof(int);
az = G_alloc_vector(nsizc + 1);
More information about the grass-commit
mailing list