]> git.sesse.net Git - vlc/commitdiff
HTTP out: fix error message
authorPierre Ynard <linkfanel@yahoo.fr>
Tue, 4 Oct 2011 01:30:32 +0000 (03:30 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Tue, 4 Oct 2011 01:30:32 +0000 (03:30 +0200)
modules/access_output/http.c

index 436a4ddeb4dbe66f2f1eb9ae9c6cb9fc538592dd..a599bc1efcd37f4f648609a232b90fe2c00b1d3d 100644 (file)
@@ -152,8 +152,7 @@ static int Open( vlc_object_t *p_this )
             port = NULL; /* IPv6 numeral */
         if( port != p_access->psz_path )
         {
-            int len = port ? (port - p_access->psz_path)
-                           : (int)strlen( p_access->psz_path );
+            int len = (port ? port : path) - p_access->psz_path;
             msg_Err( p_access, "\"%.*s\" HTTP host ignored", len,
                      p_access->psz_path );
             msg_Info( p_access,