From 141a823ea421171d10466eccf0b2d03c0417667e Mon Sep 17 00:00:00 2001 From: topcat001 Date: Mon, 28 Feb 2022 13:11:28 -0800 Subject: [PATCH] Use PATH_MAX instead of MAXPATHLEN. --- osdep-openbsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osdep-openbsd.c b/osdep-openbsd.c index 1fc087d3..b4c8fc56 100644 --- a/osdep-openbsd.c +++ b/osdep-openbsd.c @@ -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)