[GRASS-SVN] r47136 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 16 05:28:19 EDT 2011
Author: glynn
Date: 2011-07-16 02:28:18 -0700 (Sat, 16 Jul 2011)
New Revision: 47136
Modified:
grass/trunk/lib/gis/parser.c
Log:
Fix allocation error
Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c 2011-07-15 21:17:22 UTC (rev 47135)
+++ grass/trunk/lib/gis/parser.c 2011-07-16 09:28:18 UTC (rev 47136)
@@ -1370,6 +1370,6 @@
static void append_error(const char *msg)
{
- st->error = G_realloc(st->error, sizeof(char *) * st->n_errors + 1);
+ st->error = G_realloc(st->error, sizeof(char *) * (st->n_errors + 1));
st->error[st->n_errors++] = G_store(msg);
}
More information about the grass-commit
mailing list