diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-12-15 16:29:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-12-15 16:29:30 +0000 |
commit | 6d9489b45c639aa7ac2e9416368c8f0231b89b57 (patch) | |
tree | 4c7555a3632908b7ffc2a36e1bd4d67fcf08b658 /games/hack | |
parent | 54afa98178fb15e5d3de8a1396e50998ee09ebe7 (diff) |
The PATH_MAX+1 bites. The PATH_MAX+1 bites. You die...
ok millert mlarkin
Diffstat (limited to 'games/hack')
-rw-r--r-- | games/hack/hack.unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hack/hack.unix.c b/games/hack/hack.unix.c index a1fdd5a29f5..96a9ca84d2f 100644 --- a/games/hack/hack.unix.c +++ b/games/hack/hack.unix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.unix.c,v 1.20 2016/09/11 14:21:17 tb Exp $ */ +/* $OpenBSD: hack.unix.c,v 1.21 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 = ""; |