[Mplayer-cvslog] CVS: main mplayer.c,1.674,1.675
Arpi of Ize
arpi at mplayerhq.hu
Fri Feb 7 20:44:21 CET 2003
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
More information about the MPlayer-cvslog
mailing list