diff src/rcfile.c @ 715:179a7224dde1

Use g_build_filename().
author zas_
date Wed, 21 May 2008 00:32:57 +0000
parents a3218946bd2d
children 9a6a7e95467a
line wrap: on
line diff
--- a/src/rcfile.c	Wed May 21 00:20:13 2008 +0000
+++ b/src/rcfile.c	Wed May 21 00:32:57 2008 +0000
@@ -299,7 +299,7 @@
 	gchar *rc_pathl;
 	gint i;
 
-	rc_path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/", RC_FILE_NAME, NULL);
+	rc_path = g_build_filename(homedir(), GQ_RC_DIR, RC_FILE_NAME, NULL);
 
 	rc_pathl = path_from_utf8(rc_path);
 	ssi = secure_open(rc_pathl);
@@ -609,7 +609,7 @@
 	for (i = 0; ExifUIList[i].key; i++)
 		ExifUIList[i].current = ExifUIList[i].default_value;
 
-	rc_path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/", RC_FILE_NAME, NULL);
+	rc_path = g_build_filename(homedir(), GQ_RC_DIR, RC_FILE_NAME, NULL);
 
 	rc_pathl = path_from_utf8(rc_path);
 	f = fopen(rc_pathl,"r");