From b5f58a4be20683cd58b40133cc2ab8e50c158e90 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Mon, 12 Nov 2012 18:04:47 +0100 Subject: Make sure g_strconcat() result is NULL terminated --- src/common/cfgfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/cfgfiles.c') 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) -- cgit 1.4.1