r14788 - gnucash/trunk/src/backend/file - Replace hardcoded dir separator by the glib macro

Christian Stimming cstim at cvs.gnucash.org
Sun Sep 3 06:23:37 EDT 2006


Author: cstim
Date: 2006-09-03 06:23:34 -0400 (Sun, 03 Sep 2006)
New Revision: 14788
Trac: http://svn.gnucash.org/trac/changeset/14788

Modified:
   gnucash/trunk/src/backend/file/gnc-backend-file.c
Log:
Replace hardcoded dir separator by the glib macro

Modified: gnucash/trunk/src/backend/file/gnc-backend-file.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-backend-file.c	2006-09-03 10:13:08 UTC (rev 14787)
+++ gnucash/trunk/src/backend/file/gnc-backend-file.c	2006-09-03 10:23:34 UTC (rev 14788)
@@ -212,7 +212,7 @@
     }
     be->fullpath = g_strdup (be->dirname);
     be->be.fullpath = be->fullpath;
-    p = strrchr (be->dirname, '/');
+    p = strrchr (be->dirname, G_DIR_SEPARATOR);
     if (p && p != be->dirname)
     {
         struct stat statbuf;
@@ -758,12 +758,12 @@
 
     /* XXX it would be nice for the user if we made the book 
      * closing date and/or title part of the file-name. */
-    p = strrchr (str, '/');
+    p = strrchr (str, G_DIR_SEPARATOR);
     p++;
     p = stpcpy (p, "book-");
     p = guid_to_string_buff (qof_book_get_guid(book), p);
     p = stpcpy (p, "-");
-    q = strrchr (fbe->fullpath, '/');
+    q = strrchr (fbe->fullpath, G_DIR_SEPARATOR);
     q++;
     p = stpcpy (p, q);
     p = stpcpy (p, ".gml");



More information about the gnucash-changes mailing list