diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-11-12 07:47:58 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-11-12 07:47:58 +0100 |
commit | fdc316a1ce9a1c326bd7668b98dd5f313b920c5f (patch) | |
tree | 6a17f56f2b8ed707e7407e4900e22f7c3cc3b697 /src | |
parent | 1e35c196e8f44afdcc7a640af8b92fd977edacaf (diff) |
Fix g_strdup_printf() call causing removal of hexchat.conf
Diffstat (limited to 'src')
-rw-r--r-- | src/common/cfgfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index ffa2e531..b31d7e37 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -849,7 +849,7 @@ save_config (void) check_prefs_dir (); config = default_file (); - new_config = g_strdup_printf (config, ".new"); + new_config = g_strdup_printf ("%s.new", config); fh = g_open (new_config, OFLAGS | O_TRUNC | O_WRONLY | O_CREAT, 0600); if (fh == -1) |