diff options
Diffstat (limited to 'usr.sbin/ypserv/common/ypdb.c')
| -rw-r--r-- | usr.sbin/ypserv/common/ypdb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/common/ypdb.c b/usr.sbin/ypserv/common/ypdb.c index 3753cdcd9b8..c2e510b93d4 100644 --- a/usr.sbin/ypserv/common/ypdb.c +++ b/usr.sbin/ypserv/common/ypdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypdb.c,v 1.11 2003/07/15 06:10:46 deraadt Exp $ */ +/* $OpenBSD: ypdb.c,v 1.12 2015/01/16 06:40:22 deraadt Exp $ */ /* * Copyright (c) 1990, 1993 @@ -36,7 +36,6 @@ * SUCH DAMAGE. */ -#include <sys/param.h> #include <sys/types.h> #include <stdio.h> #include <string.h> @@ -54,7 +53,7 @@ extern DBM * ypdb_open(const char *file, int flags, int mode) { BTREEINFO info; - char path[MAXPATHLEN]; + char path[PATH_MAX]; DBM *db; memset(&info, 0, sizeof info); |
