From fdc316a1ce9a1c326bd7668b98dd5f313b920c5f Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Mon, 12 Nov 2012 07:47:58 +0100 Subject: Fix g_strdup_printf() call causing removal of hexchat.conf --- src/common/cfgfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') 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) -- cgit 1.4.1