summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
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