Use PATH_MAX (the standard name) rather than MAXPATHLEN (from BSD sys/param.h)

pull/3012/head
deraadt 2021-12-07 00:38:42 +00:00
parent ecac73f664
commit 71c3234dc7
1 changed files with 1 additions and 1 deletions

View File

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