[vlc-devel] [PATCH 1/3] text: make_path returns (null) for Win32 if hostname starts with blank
John Freed
okvlc at johnfreed.com
Sun Mar 18 22:29:27 CET 2012
---
src/text/strings.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/text/strings.c b/src/text/strings.c
index c1a7493..f3c7129 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -1223,6 +1223,9 @@ char *make_path (const char *url)
if (!strncasecmp (path, "localhost/", 10))
return memmove (path, path + 9, strlen (path + 9) + 1);
#else
+ /* cannot start with a space */
+ if (*path == ' ')
+ goto out;
for (char *p = strchr (path, '/'); p; p = strchr (p + 1, '/'))
*p = '\\';
--
1.7.7.6
More information about the vlc-devel
mailing list