summaryrefslogtreecommitdiff
path: root/pango/querymodules.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-09-12 16:38:18 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-09-12 16:38:18 +0000
commit276be1c7bbf92d8540249cd546c362395a551758 (patch)
tree572a0655c3cea323ff29f1c82fb816def21450ee /pango/querymodules.c
parente0dfb07ec8e8ae251d7a0f52ed3d1301f7c8abf1 (diff)
downloadpango-276be1c7bbf92d8540249cd546c362395a551758.tar.gz
Use g_build_filename() where appropriate.
Tue Sep 11 11:31:53 2001 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-fontmap.c pango/modules.c pango/pango-utils.c pango/querymodules.c: Use g_build_filename() where appropriate.
Diffstat (limited to 'pango/querymodules.c')
-rw-r--r--pango/querymodules.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/querymodules.c b/pango/querymodules.c
index ff9263f9..5b86d53a 100644
--- a/pango/querymodules.c
+++ b/pango/querymodules.c
@@ -61,10 +61,10 @@ query_module (const char *dir, const char *name)
GModule *module;
gchar *path;
- if (name[0] == G_DIR_SEPARATOR)
+ if (g_path_is_absolute (name))
path = g_strdup (name);
else
- path = g_strconcat (dir, G_DIR_SEPARATOR_S, name, NULL);
+ path = g_build_filename (dir, name, NULL);
module = g_module_open (path, 0);
@@ -141,9 +141,9 @@ int main (int argc, char **argv)
path = pango_config_key_get ("Pango/ModulesPath");
if (!path)
- path = g_strconcat (pango_get_lib_subdirectory (),
- G_DIR_SEPARATOR_S "modules",
- NULL);
+ path = g_build_filename (pango_get_lib_subdirectory (),
+ "modules",
+ NULL);
printf ("# ModulesPath = %s\n#\n", path);