summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-11-12 18:04:47 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-11-12 18:04:47 +0100
commitb5f58a4be20683cd58b40133cc2ab8e50c158e90 (patch)
tree0c8dcf3f841b2112027efc3ee02c1335f93f21ff /src
parent268115239c8af3edb26c33822eb2a4840e6d72f8 (diff)
Make sure g_strconcat() result is NULL terminated
Diffstat (limited to 'src')
-rw-r--r--src/common/cfgfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 273d1e49..68bad7a9 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_strconcat (config, ".new");
+	new_config = g_strconcat (config, ".new", NULL);
 	
 	fh = g_open (new_config, OFLAGS | O_TRUNC | O_WRONLY | O_CREAT, 0600);
 	if (fh == -1)