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)