if( stream_Peek( p_demux->s, &p_peek, 4 ) < 4 ) return VLC_EGENERIC;
- if( strncmp( p_peek, ".snd", 4 ) )
+ if( memcmp( p_peek, ".snd", 4 ) )
{
return VLC_EGENERIC;
}
/* Is it a wav file ? */
if( stream_Peek( p_demux->s, &p_peek, 12 ) < 12 ) return VLC_EGENERIC;
- if( strncmp( p_peek, "RIFF", 4 ) || strncmp( &p_peek[8], "WAVE", 4 ) )
+ if( memcmp( p_peek, "RIFF", 4 ) || memcmp( &p_peek[8], "WAVE", 4 ) )
{
return VLC_EGENERIC;
}
msg_Dbg( p_demux, "Chunk: fcc=`%4.4s` size=%d", p_peek, i_size );
- if( !strncmp( p_peek, fcc, 4 ) )
+ if( !memcmp( p_peek, fcc, 4 ) )
{
if( pi_size )
{