1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

The PATH_MAX+1 bites. The PATH_MAX+1 bites. You die...

ok millert mlarkin
This commit is contained in:
deraadt 2021-12-15 16:29:29 +00:00
parent 5af2eee027
commit 361380a1a5

View File

@ -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 = "";