From: Clément Stenac Date: Sun, 10 Jul 2005 10:51:28 +0000 (+0000) Subject: Warning fixes X-Git-Tag: 0.8.4~1290 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=dc4fe2caf3448ff0e2c489a40f77ac5df84ce7f5;p=vlc Warning fixes --- diff --git a/modules/demux/au.c b/modules/demux/au.c index 87402b8f3d..f97acf47f3 100644 --- a/modules/demux/au.c +++ b/modules/demux/au.c @@ -107,7 +107,7 @@ static int Open( vlc_object_t *p_this ) 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; } diff --git a/modules/demux/wav.c b/modules/demux/wav.c index 0bd16a77b0..0caaaf1439 100644 --- a/modules/demux/wav.c +++ b/modules/demux/wav.c @@ -112,7 +112,7 @@ static int Open( vlc_object_t * p_this ) /* 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; } @@ -381,7 +381,7 @@ static int ChunkFind( demux_t *p_demux, char *fcc, unsigned int *pi_size ) 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 ) {