[GRASS-SVN] r65646 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 19 10:27:54 PDT 2015
Author: martinl
Date: 2015-07-19 10:27:54 -0700 (Sun, 19 Jul 2015)
New Revision: 65646
Modified:
grass/trunk/lib/gis/location.c
Log:
libgis: use HOST_DIRSEP in filenames (see r65639)
Modified: grass/trunk/lib/gis/location.c
===================================================================
--- grass/trunk/lib/gis/location.c 2015-07-19 17:16:10 UTC (rev 65645)
+++ grass/trunk/lib/gis/location.c 2015-07-19 17:27:54 UTC (rev 65646)
@@ -81,7 +81,7 @@
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;
}
More information about the grass-commit
mailing list