mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 02:48:47 +00:00
Use PATH_MAX (the standard name) rather than MAXPATHLEN (from BSD sys/param.h)
This commit is contained in:
parent
ecac73f664
commit
71c3234dc7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user