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
This commit is contained in:
Christian Stimming 2006-07-18 13:49:01 +00:00
parent 55a0b44a88
commit 040eb2e47d

View File

@ -220,8 +220,9 @@ gnc_module_system_refresh(void)
{ {
/* get the full path name, then dlopen the library and see /* get the full path name, then dlopen the library and see
* if it has the appropriate symbols to be a gnc_module */ * 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); dent->d_name);
/* G_DIR_SEPARATOR_S is "/" on unix and "\\" on windows. */
info = gnc_module_get_info(fullpath); info = gnc_module_get_info(fullpath);
if(info) if(info)