浏览代码

use G_snprintf() instead of snprintf()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67048 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父节点
当前提交
27c610467a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      raster/r.in.gdal/main.c

+ 1 - 1
raster/r.in.gdal/main.c

@@ -1598,7 +1598,7 @@ static int dump_rat(GDALRasterBandH hBand, char *outrat, int nBand)
 
     field_type = G_malloc(ncols * sizeof(GDALRATFieldType));
     
-    snprintf(fname, GNAME_MAX, "%s_%d.csv", outrat, nBand);
+    G_snprintf(fname, GNAME_MAX, "%s_%d.csv", outrat, nBand);
     if (!(fp = fopen(fname, "w"))) {
 	int err = errno;