diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-04 22:53:11 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-04 23:03:29 (EDT) |
commit | a5f16087d6d9d0d5e03ef49f1901027505879d4a (patch) | |
tree | 2846f3e31af584b602cc17ff88588abbd89d3c78 /src | |
parent | 253a2ef29ef698f3c89b5c8453551deac091f0c7 (diff) | |
download | marquee-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.c | 4 |
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); |