[GRASS-SVN] r52904 - grass/branches/releasebranch_6_4/raster/r.terraflow
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 25 06:50:46 PDT 2012
Author: mmetz
Date: 2012-08-25 06:50:46 -0700 (Sat, 25 Aug 2012)
New Revision: 52904
Modified:
grass/branches/releasebranch_6_4/raster/r.terraflow/nodata.h
grass/branches/releasebranch_6_4/raster/r.terraflow/plateau.h
Log:
hamish: allocate enough room for the null terminator, plus a little more (#1312, merge from trunk)
Modified: grass/branches/releasebranch_6_4/raster/r.terraflow/nodata.h
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.terraflow/nodata.h 2012-08-25 13:47:03 UTC (rev 52903)
+++ grass/branches/releasebranch_6_4/raster/r.terraflow/nodata.h 2012-08-25 13:50:46 UTC (rev 52904)
@@ -61,7 +61,7 @@
}
static char *printLabel(const nodataType &p) {
- static char buf[3];
+ static char buf[8];
sprintf(buf, CCLABEL_FMT, p.label);
return buf;
}
Modified: grass/branches/releasebranch_6_4/raster/r.terraflow/plateau.h
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.terraflow/plateau.h 2012-08-25 13:47:03 UTC (rev 52903)
+++ grass/branches/releasebranch_6_4/raster/r.terraflow/plateau.h 2012-08-25 13:50:46 UTC (rev 52904)
@@ -46,7 +46,7 @@
void invalidate() { valid = false; }
static char *printLabel(const plateauType &p) {
- static char buf[3];
+ static char buf[8];
sprintf(buf, CCLABEL_FMT, p.cclabel);
return buf;
}
More information about the grass-commit
mailing list