[PATCH] fix XINE_PLUGIN_PATH splitting
Christian Kögler <[email protected]> Thu, 13 Jun 2019 22:11:24 +0200
| Newsgroups | gmane.comp.video.xine.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------C8C1A93D36C698BC194C0276
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
If XINE_PLUGIN_PATH contains more than one path separated by
XINE_PATH_SEPARATOR_CHAR only the last path is valid.
For all other pathes the length is wrongly calculated. The path
separator is part of the path and therefor an invalid path.
---
src/xine-engine/load_plugins.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--------------C8C1A93D36C698BC194C0276
Content-Type: text/x-patch;
name="0001-fix-XINE_PLUGIN_PATH-splitting.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0001-fix-XINE_PLUGIN_PATH-splitting.patch"
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c
index a11442f..3586b97 100644
--- a/src/xine-engine/load_plugins.c
+++ b/src/xine-engine/load_plugins.c
@@ -1408,8 +1408,8 @@ int _x_scan_plugins (xine_t *this) {
q = p;
p = strchr (p, XINE_PATH_SEPARATOR_CHAR);
if (p) {
- p++;
len = p - q;
+ p++;
} else
len = strlen(q);
if (q[0] == '~' && q[1] == '/')
--------------C8C1A93D36C698BC194C0276
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--------------C8C1A93D36C698BC194C0276
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
xine-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-devel
--------------C8C1A93D36C698BC194C0276--