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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 22 01:52:53 PDT 2019


Author: mmetz
Date: 2019-03-22 01:52:53 -0700 (Fri, 22 Mar 2019)
New Revision: 74298

Modified:
   grass/trunk/lib/gis/basename.c
Log:
libgis: fix r73981

Modified: grass/trunk/lib/gis/basename.c
===================================================================
--- grass/trunk/lib/gis/basename.c	2019-03-21 02:03:54 UTC (rev 74297)
+++ grass/trunk/lib/gis/basename.c	2019-03-22 08:52:53 UTC (rev 74298)
@@ -88,12 +88,12 @@
     char *result;
 
     if (ndigits != 0){
-        sprintf(intfmt, "%%0%zu", ndigits);
+        sprintf(intfmt, "%%0%zud", ndigits);
     }
     sprintf(intstr, intfmt, (int)integer);
 
     if (ndecimals != 0){
-        sprintf(decfmt, "_%%0%zu", ndecimals);
+        sprintf(decfmt, "_%%0%zud", ndecimals);
         decimal = ((number - integer) * pow(10., (double)ndecimals));
         sprintf(decstr, decfmt, (int)decimal);
     }



More information about the grass-commit mailing list