Commit edf8e0f2 authored by Rafaël Carré's avatar Rafaël Carré

Fix "Fix httpd stack corruption"

parent 78de2420
......@@ -263,8 +263,8 @@ static int Open( vlc_object_t *p_this )
i_port= 8080;
}
/* maximum port is 65535 , strlen("65535") == 5 */
psz_tmp = malloc( ( strlen( psz_address ) + 5 ) * sizeof( char) );
/* maximum port is 65535 , strlen("65535") = 5 , + ':' = 6 */
psz_tmp = malloc( ( strlen( psz_address ) + 6 ) * sizeof( char) );
/* Ugly hack to allow to run several HTTP servers on different ports. */
sprintf( psz_tmp, "%s:%d", psz_address, i_port + 1 );
......
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