[Mplayer-cvslog] CVS: main/libmpdemux cue_read.c,1.4,1.5

Felix Buenemann atmosfear at users.sourceforge.net
Mon Jan 6 10:47:35 CET 2003


On Monday 06 January 2003 10:44, Atmosfear wrote:
> Update of /cvsroot/mplayer/main/libmpdemux
> In directory mail:/var/tmp.root/cvs-serv26514/libmpdemux
>
> Modified Files:
> 	cue_read.c
> Log Message:
> 10l, hopefully correct fix, before path was always overwritten to '/'

another possibillity could be, that SMS really meant strcat and not strcpy, 
but the later code attaches a / if missing from the dirname, so both should 
work fine.

>
> Index: cue_read.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libmpdemux/cue_read.c,v
> retrieving revision 1.4
> retrieving revision 1.5
> diff -u -r1.4 -r1.5
> --- cue_read.c	6 Jan 2003 01:12:30 -0000	1.4
> +++ cue_read.c	6 Jan 2003 09:44:28 -0000	1.5
> @@ -295,7 +295,7 @@
>    else {
>       *t = '\0';
>       t = s;
> -     if (*t)
> +     if (*t == '\0')
>         strcpy(t, "/");
>    }
>    printf ("dirname: %s\n", t);
>

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________



More information about the MPlayer-cvslog mailing list