[GRASS-SVN] r40721 - grass-addons/raster/r.stream.basins
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 28 02:36:01 EST 2010
Author: jarekj71
Date: 2010-01-28 02:35:59 -0500 (Thu, 28 Jan 2010)
New Revision: 40721
Modified:
grass-addons/raster/r.stream.basins/io.c
Log:
fixed mempry corruption for stream processing
Modified: grass-addons/raster/r.stream.basins/io.c
===================================================================
--- grass-addons/raster/r.stream.basins/io.c 2010-01-28 05:11:13 UTC (rev 40720)
+++ grass-addons/raster/r.stream.basins/io.c 2010-01-28 07:35:59 UTC (rev 40721)
@@ -178,7 +178,7 @@
if(!answers)
return;
- categories = G_malloc(link_max* sizeof(int));
+ categories = G_malloc((link_max+1)* sizeof(int));
for (i=0;i<(link_max+1);++i)
categories[i]=-1;
More information about the grass-commit
mailing list