]> git.sesse.net Git - vlc/commitdiff
Warning fixes
authorClément Stenac <zorglub@videolan.org>
Sun, 10 Jul 2005 10:51:28 +0000 (10:51 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 10 Jul 2005 10:51:28 +0000 (10:51 +0000)
modules/demux/au.c
modules/demux/wav.c

index 87402b8f3dbb1bf999ef5e6c5ddf3f9a30d7d075..f97acf47f37503c620ec411e75ae387d33d423cf 100644 (file)
@@ -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;
     }
index 0bd16a77b01a2837e5af89dffa690ce3d50f9c57..0caaaf1439f484b575ef8781968a8b2f8ae9f798 100644 (file)
@@ -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 )
             {