diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-12-07 00:38:43 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-12-07 00:38:43 +0000 |
commit | 4898f7b3e0d8e7153d5ac55ca0989f99800c94d2 (patch) | |
tree | 761dcadda4eab2f57d8c2947632db8110ad70cf0 /usr.bin/tmux | |
parent | ae726f8f5d9cab8fa627240b09af5fc64dad91cc (diff) |
Use PATH_MAX (the standard name) rather than MAXPATHLEN (from BSD sys/param.h)
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/procname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/procname.c b/usr.bin/tmux/procname.c index 1fcec1bdadf..2ee1aa4b177 100644 --- a/usr.bin/tmux/procname.c +++ b/usr.bin/tmux/procname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procname.c,v 1.17 2020/04/08 11:26:07 nicm Exp $ */ +/* $OpenBSD: procname.c,v 1.18 2021/12/07 00:38:42 deraadt Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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) |