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