Commit f7f350aa authored by Pierre Ynard's avatar Pierre Ynard

HTTP out: fix error message

parent 751dc388
...@@ -152,8 +152,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -152,8 +152,7 @@ static int Open( vlc_object_t *p_this )
port = NULL; /* IPv6 numeral */ port = NULL; /* IPv6 numeral */
if( port != p_access->psz_path ) if( port != p_access->psz_path )
{ {
int len = port ? (port - p_access->psz_path) int len = (port ? port : path) - p_access->psz_path;
: (int)strlen( p_access->psz_path );
msg_Err( p_access, "\"%.*s\" HTTP host ignored", len, msg_Err( p_access, "\"%.*s\" HTTP host ignored", len,
p_access->psz_path ); p_access->psz_path );
msg_Info( p_access, msg_Info( p_access,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment