[GRASS-SVN] r65618 - grass/branches/releasebranch_7_0/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 19 05:44:07 PDT 2015
Author: annakrat
Date: 2015-07-19 05:44:07 -0700 (Sun, 19 Jul 2015)
New Revision: 65618
Modified:
grass/branches/releasebranch_7_0/lib/gis/basename.c
Log:
r.horizon: fix formatting string, see #2624 (merge from trunk, r65614)
Modified: grass/branches/releasebranch_7_0/lib/gis/basename.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/gis/basename.c 2015-07-18 17:48:22 UTC (rev 65617)
+++ grass/branches/releasebranch_7_0/lib/gis/basename.c 2015-07-19 12:44:07 UTC (rev 65618)
@@ -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