summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-04 22:53:11 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-04 23:03:29 (EDT)
commita5f16087d6d9d0d5e03ef49f1901027505879d4a (patch)
tree2846f3e31af584b602cc17ff88588abbd89d3c78 /src
parent253a2ef29ef698f3c89b5c8453551deac091f0c7 (diff)
downloadmarquee-a5f16087d6d9d0d5e03ef49f1901027505879d4a.zip
marquee-a5f16087d6d9d0d5e03ef49f1901027505879d4a.tar.gz
marquee-a5f16087d6d9d0d5e03ef49f1901027505879d4a.tar.bz2
mq_config_new(): Build file name with g_build_filename()
Diffstat (limited to 'src')
-rw-r--r--src/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index f4e6327..b9aa207 100644
--- a/src/config.c
+++ b/src/config.c
@@ -203,8 +203,8 @@ mq_config_new(const gchar *profile)
config = malloc(sizeof(*config));
- config->file_name = g_strdup_printf("%s/%s/config",
- g_get_user_config_dir(), profile);
+ config->file_name = g_build_filename(g_get_user_config_dir(), profile,
+ "config", NULL);
config->key_file = g_key_file_new();
config->types_and_cbs = g_hash_table_new(g_str_hash, g_int_equal);
set_defaults(config);