[GRASS-SVN] r34289 -
grass/branches/releasebranch_6_3/general/g.parser
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 14 10:34:06 EST 2008
Author: neteler
Date: 2008-11-14 10:34:06 -0500 (Fri, 14 Nov 2008)
New Revision: 34289
Modified:
grass/branches/releasebranch_6_3/general/g.parser/main.c
Log:
backported buffer overflow fix
Modified: grass/branches/releasebranch_6_3/general/g.parser/main.c
===================================================================
--- grass/branches/releasebranch_6_3/general/g.parser/main.c 2008-11-14 15:30:19 UTC (rev 34288)
+++ grass/branches/releasebranch_6_3/general/g.parser/main.c 2008-11-14 15:34:06 UTC (rev 34289)
@@ -380,7 +380,7 @@
* Set both until all scripts are updated */
for (flag = ctx.first_flag; flag; flag = flag->next_flag)
{
- char buff[12];
+ char buff[16];
sprintf(buff, "GIS_FLAG_%c=%d", flag->key, flag->answer ? 1 : 0);
putenv(G_store(buff));
More information about the grass-commit
mailing list