Browse Source

GRASS_DIRSEP or HOST_DIRSEP ?

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38761 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 15 years ago
parent
commit
06049f7292
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/gis/home.c

+ 1 - 1
lib/gis/home.c

@@ -102,7 +102,7 @@ const char *G_rc_path(void)
 /* HB: making a complete bollocks of this, but to express the idea... */
     const char *rcpath = 0;
 
-    sprintf(rcpath, "%s/%s", G_home(), RCDIR);
+    sprintf(rcpath, "%s%c%s", G_home(), HOST_DIRSEP, RCDIR);
 
 #ifdef POSSIBILITY
     /* create it if it doesn't exist */