[GRASS-SVN] r48484 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 26 17:11:44 EDT 2011


Author: glynn
Date: 2011-09-26 14:11:44 -0700 (Mon, 26 Sep 2011)
New Revision: 48484

Modified:
   grass/trunk/lib/gis/rd_cellhd.c
Log:
Fix allocation bug (wrong pointer type in "sizeof")


Modified: grass/trunk/lib/gis/rd_cellhd.c
===================================================================
--- grass/trunk/lib/gis/rd_cellhd.c	2011-09-26 20:18:42 UTC (rev 48483)
+++ grass/trunk/lib/gis/rd_cellhd.c	2011-09-26 21:11:44 UTC (rev 48484)
@@ -66,7 +66,7 @@
     while (G_getl(buf, sizeof(buf), fd))
 	count++;
 
-    array = (char **)G_calloc(count + 1, sizeof(char **));
+    array = (char **)G_calloc(count + 1, sizeof(char *));
 
     count = 0;
     G_fseek(fd, 0L, 0);



More information about the grass-commit mailing list