浏览代码

GRASS_DIRSEP or HOST_DIRSEP ?

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38761 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 15 年之前
父节点
当前提交
06049f7292
共有 1 个文件被更改,包括 1 次插入1 次删除
  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... */
 /* HB: making a complete bollocks of this, but to express the idea... */
     const char *rcpath = 0;
     const char *rcpath = 0;
 
 
-    sprintf(rcpath, "%s/%s", G_home(), RCDIR);
+    sprintf(rcpath, "%s%c%s", G_home(), HOST_DIRSEP, RCDIR);
 
 
 #ifdef POSSIBILITY
 #ifdef POSSIBILITY
     /* create it if it doesn't exist */
     /* create it if it doesn't exist */