[GRASS-SVN] r65614 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 18 10:00:43 PDT 2015


Author: annakrat
Date: 2015-07-18 10:00:43 -0700 (Sat, 18 Jul 2015)
New Revision: 65614

Modified:
   grass/trunk/lib/gis/basename.c
Log:
r.horizon: fix formatting string, see #2624

Modified: grass/trunk/lib/gis/basename.c
===================================================================
--- grass/trunk/lib/gis/basename.c	2015-07-18 16:05:13 UTC (rev 65613)
+++ grass/trunk/lib/gis/basename.c	2015-07-18 17:00:43 UTC (rev 65614)
@@ -88,12 +88,12 @@
     char *result;
 
     if (ndigits != 0){
-        sprintf(intfmt, "%%0%zud", ndigits);
+        sprintf(intfmt, "%%0%ud", ndigits);
     }
     sprintf(intstr, intfmt, (int)integer);
 
     if (ndecimals != 0){
-        sprintf(decfmt, "_%%0%zud", ndecimals);
+        sprintf(decfmt, "_%%0%ud", ndecimals);
         decimal = ((number - integer) * pow(10., (double)ndecimals));
         sprintf(decstr, decfmt, (int)decimal);
     }



More information about the grass-commit mailing list