]> git.sesse.net Git - vlc/commitdiff
Match localhost plus / not localhost plus directory separator
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 18 Jul 2009 08:58:46 +0000 (11:58 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 18 Jul 2009 08:58:46 +0000 (11:58 +0300)
src/input/input.c

index f49e747b8b9df7c85b2e50187d536bcd2be91565..ac7d3908aecba766efe9d25bd7faa663a355718e 100644 (file)
@@ -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 );