Use PATH_MAX instead of MAXPATHLEN.

pull/3093/head
topcat001 2022-02-28 13:11:28 -08:00
parent 649685ff6d
commit 047c011a15
1 changed files with 1 additions and 1 deletions

View File

@ -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)