mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use PATH_MAX (the standard name) rather than MAXPATHLEN (from BSD sys/param.h)
This commit is contained in:
		@@ -138,7 +138,7 @@ char *
 | 
			
		||||
get_proc_cwd(int fd)
 | 
			
		||||
{
 | 
			
		||||
        int             name[] = { CTL_KERN, KERN_PROC_CWD, 0 };
 | 
			
		||||
        static char     path[MAXPATHLEN];
 | 
			
		||||
        static char     path[PATH_MAX];
 | 
			
		||||
        size_t          pathlen = sizeof path;
 | 
			
		||||
 | 
			
		||||
        if ((name[2] = tcgetpgrp(fd)) == -1)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user