aboutsummaryrefslogtreecommitdiff
path: root/osdep-openbsd.c
diff options
context:
space:
mode:
authortopcat001 <anindya49@hotmail.com>2022-02-28 13:11:28 -0800
committerNicholas Marriott <nicholas.marriott@gmail.com>2022-04-06 14:19:50 +0100
commit141a823ea421171d10466eccf0b2d03c0417667e (patch)
tree27130e4235d72c4627810a7d6167d5ac32d0abbc /osdep-openbsd.c
parent42e795933625dbda27e3c0a453fc7d0fbf4bb758 (diff)
downloadrtmux-141a823ea421171d10466eccf0b2d03c0417667e.tar.gz
rtmux-141a823ea421171d10466eccf0b2d03c0417667e.tar.bz2
rtmux-141a823ea421171d10466eccf0b2d03c0417667e.zip
Use PATH_MAX instead of MAXPATHLEN.
Diffstat (limited to 'osdep-openbsd.c')
-rw-r--r--osdep-openbsd.c2
1 files changed, 1 insertions, 1 deletions
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)