From 153fbe15c702d9c36551d84ee8cb25c4884fd701 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 15 Jul 2013 18:13:23 +0200 Subject: userpref: correctly NULL-terminate arguments in string_concat calls --- common/userpref.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/userpref.c') diff --git a/common/userpref.c b/common/userpref.c index 760eb58..23fe583 100644 --- a/common/userpref.c +++ b/common/userpref.c @@ -202,9 +202,9 @@ static const char *userpref_get_config_dir() #endif if (use_dot_config) - __config_dir = string_concat(base_config_dir, DIR_SEP_S, ".config", DIR_SEP_S, LIBIMOBILEDEVICE_CONF_DIR); + __config_dir = string_concat(base_config_dir, DIR_SEP_S, ".config", DIR_SEP_S, LIBIMOBILEDEVICE_CONF_DIR, NULL); else - __config_dir = string_concat(base_config_dir, DIR_SEP_S, LIBIMOBILEDEVICE_CONF_DIR); + __config_dir = string_concat(base_config_dir, DIR_SEP_S, LIBIMOBILEDEVICE_CONF_DIR, NULL); if (__config_dir) { int i = strlen(__config_dir)-1; -- cgit v1.1-32-gdbae