vlc | branch: master | Pierre Ynard <[email protected]> | Tue Oct  4 03:30:32 
2011 +0200| [f7f350aa018db9b7ba88709430c35789b45881a2] | committer: Pierre Ynard

HTTP out: fix error message

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

 modules/access_output/http.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/access_output/http.c b/modules/access_output/http.c
index 436a4dd..a599bc1 100644
--- a/modules/access_output/http.c
+++ b/modules/access_output/http.c
@@ -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,

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to