- if( !strncasecmp( p_peek, "http://", sizeof( "http://" ) - 1 ) ||
- !strncasecmp( p_peek, "mms://", sizeof( "mms://" ) - 1 ) ||
- !strncasecmp( p_peek, "rtsp://", sizeof( "rtsp://" ) - 1 ) ||
- !strncasecmp( p_peek, "https://", sizeof( "https://" ) - 1 ) ||
- !strncasecmp( p_peek, "ftp://", sizeof( "ftp://" ) - 1 ) )
+ if( !strncasecmp( (const char *)p_peek, "http://", 7 ) ||
+ !strncasecmp( (const char *)p_peek, "mms://", 6 ) ||
+ !strncasecmp( (const char *)p_peek, "rtsp://", 7 ) ||
+ !strncasecmp( (const char *)p_peek, "https://", 8 ) ||
+ !strncasecmp( (const char *)p_peek, "ftp://", 6 ) )