Browse Source

dbmilib+db.login: use HOST_DIRSEP

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59336 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
fed29ed955
2 changed files with 2 additions and 2 deletions
  1. 1 1
      db/db.login/main.c
  2. 1 1
      lib/db/dbmi_base/login.c

+ 1 - 1
db/db.login/main.c

@@ -74,7 +74,7 @@ int main(int argc, char *argv[])
     }
     
     if (password->answer)
-        G_important_message(_("The password was stored in file (%s/dblogin)"), G_config_path());
+	G_important_message(_("The password was stored in file (%s%cdblogin)"), G_config_path(), HOST_DIRSEP);
     
     exit(EXIT_SUCCESS);
 }

+ 1 - 1
lib/db/dbmi_base/login.c

@@ -43,7 +43,7 @@ static const char *login_filename(void)
 
     if (!file) {
 	file = (char *)db_malloc(GPATH_MAX);
-	sprintf(file, "%s/dblogin", G_config_path());
+	sprintf(file, "%s%cdblogin", G_config_path(), HOST_DIRSEP);
     }
     return file;
 }