[GRASS-SVN] r61190 - in grass/branches/releasebranch_7_0: raster/r.info raster3d/r3.info

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 8 07:33:17 PDT 2014


Author: annakrat
Date: 2014-07-08 07:33:17 -0700 (Tue, 08 Jul 2014)
New Revision: 61190

Modified:
   grass/branches/releasebranch_7_0/raster/r.info/main.c
   grass/branches/releasebranch_7_0/raster3d/r3.info/r3.info.main.c
Log:
r(3).info: fix #2357 resulting in r3.info crash and r.info reporting wrong categories (merged from trunk: r61172, r61189)

Modified: grass/branches/releasebranch_7_0/raster/r.info/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.info/main.c	2014-07-08 14:24:41 UTC (rev 61189)
+++ grass/branches/releasebranch_7_0/raster/r.info/main.c	2014-07-08 14:33:17 UTC (rev 61190)
@@ -413,7 +413,7 @@
 
 static void format_double(const double value, char *buf)
 {
-    sprintf(buf, "%.8lf", value);
+    sprintf(buf, "%.8f", value);
     G_trim_decimal(buf);
 }
 

Modified: grass/branches/releasebranch_7_0/raster3d/r3.info/r3.info.main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster3d/r3.info/r3.info.main.c	2014-07-08 14:24:41 UTC (rev 61189)
+++ grass/branches/releasebranch_7_0/raster3d/r3.info/r3.info.main.c	2014-07-08 14:33:17 UTC (rev 61190)
@@ -490,7 +490,7 @@
 int format_double(double value, char *buf)
 {
 
-    sprintf(buf, "%.8lf", value);
+    sprintf(buf, "%.8f", value);
     G_trim_decimal(buf);
     return 0;
 }



More information about the grass-commit mailing list