Bladeren bron

GRASS_DIRSEP or HOST_DIRSEP ?

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38761 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 15 jaren geleden
bovenliggende
commit
06049f7292
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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 */