From 6d93dd896909b618d76bb97104e4b92193051518 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 9 May 2015 16:25:53 +0200 Subject: path: use mp_path_join in one more place --- options/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options') 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); } -- cgit v1.2.3