artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d67a5a6
)
Use PATH_MAX (the standard name) rather than MAXPATHLEN (from BSD sys/param.h)
author
deraadt
<deraadt@openbsd.org>
Tue, 7 Dec 2021 00:38:42 +0000
(
00:38
+0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 7 Dec 2021 00:38:42 +0000
(
00:38
+0000)
usr.bin/tmux/procname.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/procname.c
b/usr.bin/tmux/procname.c
index
1fcec1b
..
2ee1aa4
100644
(file)
--- a/
usr.bin/tmux/procname.c
+++ b/
usr.bin/tmux/procname.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: procname.c,v 1.1
7 2020/04/08 11:26:07 nicm
Exp $ */
+/* $OpenBSD: procname.c,v 1.1
8 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)