diff options
Diffstat (limited to 'regress/lib/libpthread/cwd/cwd.c')
-rw-r--r-- | regress/lib/libpthread/cwd/cwd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libpthread/cwd/cwd.c b/regress/lib/libpthread/cwd/cwd.c index 925e337a728..f274088b3d7 100644 --- a/regress/lib/libpthread/cwd/cwd.c +++ b/regress/lib/libpthread/cwd/cwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cwd.c,v 1.2 2001/09/20 16:43:15 todd Exp $ */ +/* $OpenBSD: cwd.c,v 1.3 2021/12/13 16:56:48 deraadt Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -37,15 +37,15 @@ */ #include <stdio.h> -#include <sys/param.h> #include <stdlib.h> #include <unistd.h> +#include <limits.h> #include "test.h" int main(int argc, char **argv) { - char wd[MAXPATHLEN]; + char wd[PATH_MAX]; char *path; ASSERT(path = getcwd(wd, sizeof wd)); |