diff options
author | Nikias Bassen | 2013-07-15 18:13:23 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-07-15 18:13:23 +0200 |
commit | 153fbe15c702d9c36551d84ee8cb25c4884fd701 (patch) | |
tree | 543d15a0749af781d2064b99c1463a863142f1ad | |
parent | 52c6680bc3c2ee2df793ccf10f7f4be97be2dae9 (diff) | |
download | libimobiledevice-153fbe15c702d9c36551d84ee8cb25c4884fd701.tar.gz libimobiledevice-153fbe15c702d9c36551d84ee8cb25c4884fd701.tar.bz2 |
userpref: correctly NULL-terminate arguments in string_concat calls
-rw-r--r-- | common/userpref.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |