r14712 - gnucash/trunk/src/backend/file - Fix one more instance of explicit directory separator to use G_DIR_SEPARATOR_S instead

Christian Stimming cstim at cvs.gnucash.org
Tue Aug 22 16:08:09 EDT 2006


Author: cstim
Date: 2006-08-22 16:08:08 -0400 (Tue, 22 Aug 2006)
New Revision: 14712
Trac: http://svn.gnucash.org/trac/changeset/14712

Modified:
   gnucash/trunk/src/backend/file/gnc-backend-file.c
Log:
Fix one more instance of explicit directory separator to use G_DIR_SEPARATOR_S instead

Modified: gnucash/trunk/src/backend/file/gnc-backend-file.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-backend-file.c	2006-08-22 19:41:18 UTC (rev 14711)
+++ gnucash/trunk/src/backend/file/gnc-backend-file.c	2006-08-22 20:08:08 UTC (rev 14712)
@@ -667,7 +667,8 @@
         if (gnc_file_be_select_files (dent) == 0)
              continue;
 
-        name = g_strconcat(be->dirname, "/", dent->d_name, NULL);
+	/* G_DIR_SEPARATOR_S is "/" on unix and "\\" on windows. */
+        name = g_strconcat(be->dirname, G_DIR_SEPARATOR_S, dent->d_name, NULL);
         len = strlen(name) - 4;
 
         /* Is this file associated with the current data file */



More information about the gnucash-changes mailing list