Browse Source

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 years ago
parent
commit
1f879e823a
1 changed files with 1 additions and 1 deletions
  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;
 }