diff options
-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); |