Sfoglia il codice sorgente

r.horizon: fix formatting string, see https://trac.osgeo.org/grass/ticket/2624

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65614 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 anni fa
parent
commit
3ce9be90ba
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      lib/gis/basename.c

+ 2 - 2
lib/gis/basename.c

@@ -88,12 +88,12 @@ char *G_double_to_basename_format(double number,
     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);
     }