[GRASS-SVN] r50183 - grass/branches/develbranch_6/raster/r.terraflow
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 14 19:22:48 EST 2012
Author: hamish
Date: 2012-01-14 16:22:48 -0800 (Sat, 14 Jan 2012)
New Revision: 50183
Modified:
grass/branches/develbranch_6/raster/r.terraflow/nodata.h
grass/branches/develbranch_6/raster/r.terraflow/plateau.h
Log:
allocate enough room for the null terminator, plus a little more (#1312, merge from trunk)
Modified: grass/branches/develbranch_6/raster/r.terraflow/nodata.h
===================================================================
--- grass/branches/develbranch_6/raster/r.terraflow/nodata.h 2012-01-15 00:22:30 UTC (rev 50182)
+++ grass/branches/develbranch_6/raster/r.terraflow/nodata.h 2012-01-15 00:22:48 UTC (rev 50183)
@@ -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/develbranch_6/raster/r.terraflow/plateau.h
===================================================================
--- grass/branches/develbranch_6/raster/r.terraflow/plateau.h 2012-01-15 00:22:30 UTC (rev 50182)
+++ grass/branches/develbranch_6/raster/r.terraflow/plateau.h 2012-01-15 00:22:48 UTC (rev 50183)
@@ -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