mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 10:17:31 +00:00
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
This commit is contained in:
parent
a3385947b2
commit
a1ae65e2bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user