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

This commit is contained in:
deraadt 2021-12-07 00:38:42 +00:00
parent ecac73f664
commit 71c3234dc7

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)