[Mplayer-cvslog] CVS: main mplayer.c,1.674,1.675
Fabian Franz
FabianFranz at gmx.de
Fri Feb 7 20:46:08 CET 2003
theres another occurence at:
mplayer.c:765: `MAXPATHLEN' undeclared (first use in this function)
cu
Fabian
Am Freitag, 7. Februar 2003 20:44 schrieb Arpi of Ize:
> Update of /cvsroot/mplayer/main
> In directory mail:/var/tmp.root/cvs-serv25275
>
> Modified Files:
> mplayer.c
> Log Message:
> PATH_MAX should be more portable, and we even include limits.h to be sure
>
>
> Index: mplayer.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/mplayer.c,v
> retrieving revision 1.674
> retrieving revision 1.675
> diff -u -r1.674 -r1.675
> --- mplayer.c 7 Feb 2003 19:38:37 -0000 1.674
> +++ mplayer.c 7 Feb 2003 19:44:12 -0000 1.675
> @@ -15,6 +15,7 @@
> #include <signal.h>
> #include <time.h>
> #include <fcntl.h>
> +#include <limits.h>
>
> #include <errno.h>
>
> @@ -766,7 +767,7 @@
> play_tree_iter_free(playtree_iter);
> playtree_iter=NULL;
>
> - if (getcwd(cwd, MAXPATHLEN) != (char *)NULL)
> + if (getcwd(cwd, PATH_MAX) != (char *)NULL)
> {
> strcat(cwd, "/");
> // Prefix relative paths with current working directory
>
> _______________________________________________
> Mplayer-cvslog mailing list
> Mplayer-cvslog at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list