# HG changeset patch # User arpi # Date 1044647052 0 # Node ID 51a9af80d8749d55d07fc5736421d8d197cc3f09 # Parent c7f5df43b93794b84f3db11d80c75e398f639916 PATH_MAX should be more portable, and we even include limits.h to be sure diff -r c7f5df43b937 -r 51a9af80d874 mplayer.c --- a/mplayer.c Fri Feb 07 19:38:39 2003 +0000 +++ b/mplayer.c Fri Feb 07 19:44:12 2003 +0000 @@ -15,6 +15,7 @@ #include #include #include +#include #include @@ -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