From 040eb2e47d7fdde69ad65ac68e5270bd4ee19dcf Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Tue, 18 Jul 2006 13:49:01 +0000 Subject: [PATCH] Replace hard-coded directory separator character by glibs cross-platform macro. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14541 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnc-module/gnc-module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gnc-module/gnc-module.c b/src/gnc-module/gnc-module.c index fc185f7657..76187b38b9 100644 --- a/src/gnc-module/gnc-module.c +++ b/src/gnc-module/gnc-module.c @@ -220,8 +220,9 @@ gnc_module_system_refresh(void) { /* 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)