artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af2eee
)
The PATH_MAX+1 bites. The PATH_MAX+1 bites. You die...
author
deraadt
<deraadt@openbsd.org>
Wed, 15 Dec 2021 16:29:29 +0000
(16:29 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 15 Dec 2021 16:29:29 +0000
(16:29 +0000)
ok millert mlarkin
games/hack/hack.unix.c
patch
|
blob
|
history
diff --git
a/games/hack/hack.unix.c
b/games/hack/hack.unix.c
index
a1fdd5a
..
96a9ca8
100644
(file)
--- a/
games/hack/hack.unix.c
+++ b/
games/hack/hack.unix.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: hack.unix.c,v 1.2
0 2016/09/11 14:21:17 tb Exp $
*/
+/* $OpenBSD: hack.unix.c,v 1.2
1 2021/12/15 16:29:29 deraadt Exp $
*/
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@
-160,7
+160,7
@@
void
gethdate(char *name)
{
char *p, *np, *path;
- char filename[PATH_MAX
+1
];
+ char filename[PATH_MAX];
if (strchr(name, '/') != NULL || (p = getenv("PATH")) == NULL)
p = "";