r14541 - gnucash/trunk/src/gnc-module - Replace hard-coded directory separator character by glibs cross-platform macro.
Christian Stimming
cstim at cvs.gnucash.org
Tue Jul 18 09:49:01 EDT 2006
Author: cstim
Date: 2006-07-18 09:49:01 -0400 (Tue, 18 Jul 2006)
New Revision: 14541
Trac: http://svn.gnucash.org/trac/changeset/14541
Modified:
gnucash/trunk/src/gnc-module/gnc-module.c
Log:
Replace hard-coded directory separator character by glibs cross-platform macro.
Modified: gnucash/trunk/src/gnc-module/gnc-module.c
===================================================================
--- gnucash/trunk/src/gnc-module/gnc-module.c 2006-07-18 11:38:45 UTC (rev 14540)
+++ gnucash/trunk/src/gnc-module/gnc-module.c 2006-07-18 13:49:01 UTC (rev 14541)
@@ -220,8 +220,9 @@
{
/* get the full path name, then dlopen the library and see
* if it has the appropriate symbols to be a gnc_module */
- fullpath = g_strdup_printf("%s/%s", (char *)(current->data),
+ fullpath = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s", (char *)(current->data),
dent->d_name);
+ /* G_DIR_SEPARATOR_S is "/" on unix and "\\" on windows. */
info = gnc_module_get_info(fullpath);
if(info)
More information about the gnucash-changes
mailing list