diff options
author | wm4 <wm4@nowhere> | 2015-05-09 16:25:53 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-09 16:48:08 +0200 |
commit | 6d93dd896909b618d76bb97104e4b92193051518 (patch) | |
tree | ed5541a1850e22ad34e01ae9c97904a5dfc0b907 /options | |
parent | b6346cd0bafc6a56c29b9c6c56e612e32295ea98 (diff) | |
download | mpv-6d93dd896909b618d76bb97104e4b92193051518.tar.bz2 mpv-6d93dd896909b618d76bb97104e4b92193051518.tar.xz |
path: use mp_path_join in one more place
Diffstat (limited to 'options')
-rw-r--r-- | options/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/path.c b/options/path.c index 2895b7224b..4150a72a3f 100644 --- a/options/path.c +++ b/options/path.c @@ -118,7 +118,7 @@ static char **mp_find_all_config_files_limited(void *talloc_ctx, bstr fn; bstr_split_tok(s, "|", &fn, &s); - char *file = talloc_asprintf(ret, "%s/%.*s", dir, BSTR_P(fn)); + char *file = mp_path_join_bstr(ret, bstr0(dir), fn); if (mp_path_exists(file)) MP_TARRAY_APPEND(NULL, ret, num_ret, file); } |