summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-01 22:33:56 +0200
committerwm4 <wm4@nowhere>2015-05-01 22:33:56 +0200
commitdd2c65429ff918112dfe107513d56c7da2e0f0fd (patch)
treea253da2d877e553b6b4c188c429f24f1fc76440c /options
parentfd7bf9c07a0b67deecfe59ac90407162e96bf789 (diff)
downloadmpv-dd2c65429ff918112dfe107513d56c7da2e0f0fd.tar.bz2
mpv-dd2c65429ff918112dfe107513d56c7da2e0f0fd.tar.xz
path: fix user path resolution
Forgot to add the remainder to the path.
Diffstat (limited to 'options')
-rw-r--r--options/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/path.c b/options/path.c
index 8b1ae9777d..742e292eb1 100644
--- a/options/path.c
+++ b/options/path.c
@@ -185,8 +185,8 @@ char *mp_get_user_path(void *talloc_ctx, struct mpv_global *global,
} else {
char type[80];
snprintf(type, sizeof(type), "%.*s", BSTR_P(prefix));
- res = talloc_strdup(talloc_ctx,
- mp_get_platform_path(talloc_ctx, type));
+ const char *p = mp_get_platform_path(talloc_ctx, type);
+ res = mp_path_join(talloc_ctx, bstr0(p), rest);
}
}
}