summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-07 19:44:12 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-07 19:44:12 +0000
commita1ae65e2bbd4a8bdc5bb01eabbd1d80f766d861e (patch)
tree6191f040b8664b07f12307835d2365c296686344 /mplayer.c
parenta3385947b2140bda6fb85d1db5f3cea11aacb58c (diff)
downloadmpv-a1ae65e2bbd4a8bdc5bb01eabbd1d80f766d861e.tar.bz2
mpv-a1ae65e2bbd4a8bdc5bb01eabbd1d80f766d861e.tar.xz
PATH_MAX should be more portable, and we even include limits.h to be sure
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9319 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 4c124cf2f7..89894bbc02 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -15,6 +15,7 @@
#include <signal.h>
#include <time.h>
#include <fcntl.h>
+#include <limits.h>
#include <errno.h>
@@ -766,7 +767,7 @@ int gui_no_filename=0;
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