comparison src/rcfile.c @ 715:179a7224dde1

Use g_build_filename().
author zas_
date Wed, 21 May 2008 00:32:57 +0000
parents a3218946bd2d
children 9a6a7e95467a
comparison
equal deleted inserted replaced
714:0f177c151368 715:179a7224dde1
297 SecureSaveInfo *ssi; 297 SecureSaveInfo *ssi;
298 gchar *rc_path; 298 gchar *rc_path;
299 gchar *rc_pathl; 299 gchar *rc_pathl;
300 gint i; 300 gint i;
301 301
302 rc_path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/", RC_FILE_NAME, NULL); 302 rc_path = g_build_filename(homedir(), GQ_RC_DIR, RC_FILE_NAME, NULL);
303 303
304 rc_pathl = path_from_utf8(rc_path); 304 rc_pathl = path_from_utf8(rc_path);
305 ssi = secure_open(rc_pathl); 305 ssi = secure_open(rc_pathl);
306 g_free(rc_pathl); 306 g_free(rc_pathl);
307 if (!ssi) 307 if (!ssi)
607 gint i; 607 gint i;
608 608
609 for (i = 0; ExifUIList[i].key; i++) 609 for (i = 0; ExifUIList[i].key; i++)
610 ExifUIList[i].current = ExifUIList[i].default_value; 610 ExifUIList[i].current = ExifUIList[i].default_value;
611 611
612 rc_path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/", RC_FILE_NAME, NULL); 612 rc_path = g_build_filename(homedir(), GQ_RC_DIR, RC_FILE_NAME, NULL);
613 613
614 rc_pathl = path_from_utf8(rc_path); 614 rc_pathl = path_from_utf8(rc_path);
615 f = fopen(rc_pathl,"r"); 615 f = fopen(rc_pathl,"r");
616 g_free(rc_pathl); 616 g_free(rc_pathl);
617 if (!f) 617 if (!f)