浏览代码

libgis: use HOST_DIRSEP in filenames (see https://trac.osgeo.org/grass/changeset/65639)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65646 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父节点
当前提交
1f879e823a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/gis/location.c

+ 1 - 1
lib/gis/location.c

@@ -81,7 +81,7 @@ char *G__location_path(void)
     const char *base = G_gisdbase();
     char *location = G_malloc(strlen(base) + strlen(name) + 2);
 
-    sprintf(location, "%s/%s", base, name);
+    sprintf(location, "%s%c%s", base, HOST_DIRSEP, name);
 
     return location;
 }