changeset 9318:51a9af80d874

PATH_MAX should be more portable, and we even include limits.h to be sure
author arpi
date Fri, 07 Feb 2003 19:44:12 +0000
parents c7f5df43b937
children 2e8204f9da6d
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <signal.h>
 #include <time.h>
 #include <fcntl.h>
+#include <limits.h>
 
 #include <errno.h>
 
@@ -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