summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Ringwald <mringwal@inf.ethz.ch>2008-07-11 21:56:47 +0200
committerMatthias Ringwald <mringwal@inf.ethz.ch>2008-07-11 21:56:47 +0200
commitb335c937f69c5b37ef2b14a2db5597e189bb8df7 (patch)
tree87885c58f1a521f329b93c6ff13c7d4594673a33 /src
parent901d397111ba3b277e8de4abd0367a598354a2bc (diff)
downloadxine-lib-b335c937f69c5b37ef2b14a2db5597e189bb8df7.tar.gz
xine-lib-b335c937f69c5b37ef2b14a2db5597e189bb8df7.tar.bz2
Fix xine_get_pluginroot (mingw32)
xine_get_pluginroot now makes use of the XINE_REL_PLUGINROOT define
Diffstat (limited to 'src')
-rw-r--r--src/xine-utils/utils.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c
index f533d69e5..57a92623c 100644
--- a/src/xine-utils/utils.c
+++ b/src/xine-utils/utils.c
@@ -393,11 +393,8 @@ const char *xine_get_pluginroot(void) {
static char pluginroot[1024] = {0, };
if (!pluginroot[0]) {
- char *sep, *sep2;
- strcpy (pluginroot, xine_get_plugindir ());
- sep = strrchr (pluginroot, '/');
- sep2 = strrchr (pluginroot, '\\');
- *(sep < sep2 ? sep : sep2) = 0;
+ xine_get_rootdir(pluginroot, sizeof(pluginroot) - strlen(XINE_REL_PLUGINROOT) - 1);
+ strcat(pluginroot, XINE_DIRECTORY_SEPARATOR_STRING XINE_REL_PLUGINROOT);
}
return pluginroot;