mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 11:55:56 +00:00
Use PATH_MAX instead of MAXPATHLEN.
This commit is contained in:
parent
42e7959336
commit
141a823ea4
@ -141,7 +141,7 @@ char *
|
||||
osdep_get_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