mirror of
https://github.com/moparisthebest/hexchat
synced 2025-02-03 00:40:21 -05:00
Make sure g_strconcat() result is NULL terminated
This commit is contained in:
parent
268115239c
commit
b5f58a4be2
@ -849,7 +849,7 @@ save_config (void)
|
|||||||
check_prefs_dir ();
|
check_prefs_dir ();
|
||||||
|
|
||||||
config = default_file ();
|
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);
|
fh = g_open (new_config, OFLAGS | O_TRUNC | O_WRONLY | O_CREAT, 0600);
|
||||||
if (fh == -1)
|
if (fh == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user