From 71c3234dc78f6f59a66757a6e272e77823a820b3 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 7 Dec 2021 00:38:42 +0000 Subject: [PATCH] Use PATH_MAX (the standard name) rather than MAXPATHLEN (from BSD sys/param.h) --- procname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/procname.c b/procname.c index 45e508ef..ac56bb48 100644 --- a/procname.c +++ b/procname.c @@ -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)