[vlc-devel] commit: Match localhost plus / not localhost plus directory separator ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jul 18 10:59:20 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 18 11:58:46 2009 +0300| [a8820e3ef72390eea921d4d421e0f8735d053fa6] | committer: Rémi Denis-Courmont 

Match localhost plus / not localhost plus directory separator

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8820e3ef72390eea921d4d421e0f8735d053fa6
---

 src/input/input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index f49e747..ac7d390 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2362,7 +2362,7 @@ static int InputSourceInit( input_thread_t *p_input,
           )
         {   /* host specified -> only localhost is supported */
             static const size_t i_localhost = sizeof("localhost")-1;
-            if( strncmp( psz_path, "localhost" DIR_SEP, i_localhost + 1) != 0 )
+            if( strncmp( psz_path, "localhost/", i_localhost + 1) != 0 )
             {
                 msg_Err( p_input, "cannot open remote file `%s://%s'",
                          psz_access, psz_path );




More information about the vlc-devel mailing list