diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-07 19:44:12 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-07 19:44:12 +0000 |
commit | a1ae65e2bbd4a8bdc5bb01eabbd1d80f766d861e (patch) | |
tree | 6191f040b8664b07f12307835d2365c296686344 | |
parent | a3385947b2140bda6fb85d1db5f3cea11aacb58c (diff) |
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
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |