[Mplayer-cvslog] CVS: main/libmpdemux demuxer.c,1.45,1.46 demuxer.h,1.19,1.20

Felix Buenemann atmosfear at users.sourceforge.net
Wed Nov 21 23:48:59 CET 2001


On Wednesday, 21. November 2001 22:34, you wrote:
> On Wed, Nov 21, 2001 at 05:14:16PM +0100, Alex Beregszaszi wrote:
> > Update of /cvsroot/mplayer/main/libmpdemux
> > In directory mplayer:/var/tmp.root/cvs-serv3987
>> > Modified Files:
> >       demuxer.c demuxer.h
> > Log Message:
> > added demuxer_info
>>
> Breaks compilation with gcc3: please check strncmp() they're missing their
> 3rd parameter.
Yes, it's bad, man 3 strncmp says:
SYNOPSIS
       #include <string.h>

       int strcmp(const char *s1, const char *s2);

       int strncmp(const char *s1, const char *s2, size_t n);

DESCRIPTION
       The  strcmp()  function compares the two strings s1 and s2.  It 
returns an integer less than, equal to, or
       greater than zero if s1 is found, respectively, to be less than, to 
match, or be greater than s2.

       The strncmp() function is similar, except it only compares the first n 
characters of s1.

so only strcmp takes to params. I've fixed in cvs.
-- 
Best Regards,
	Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________



More information about the MPlayer-cvslog mailing list