diff options
author | topcat001 <anindya49@hotmail.com> | 2022-02-28 13:11:28 -0800 |
---|---|---|
committer | topcat001 <anindya49@hotmail.com> | 2022-02-28 13:11:28 -0800 |
commit | 047c011a1524a2d699da098ac423ef16f8a11bd6 (patch) | |
tree | 704a5e499b40ce8ae6666dc1465e4919b58ddc1b | |
parent | 649685ff6dde9959c1c63e30a3e0cababd5ebb67 (diff) | |
download | rtmux-047c011a1524a2d699da098ac423ef16f8a11bd6.tar.gz rtmux-047c011a1524a2d699da098ac423ef16f8a11bd6.tar.bz2 rtmux-047c011a1524a2d699da098ac423ef16f8a11bd6.zip |
Use PATH_MAX instead of MAXPATHLEN.
-rw-r--r-- | osdep-openbsd.c | 2 |
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) |