summaryrefslogtreecommitdiff
path: root/usr.sbin/mtree/mtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/mtree/mtree.c')
-rw-r--r--usr.sbin/mtree/mtree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c
index 837b2fe1b97..f0b6987ff17 100644
--- a/usr.sbin/mtree/mtree.c
+++ b/usr.sbin/mtree/mtree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mtree.c,v 1.21 2013/11/27 13:32:02 okan Exp $ */
+/* $OpenBSD: mtree.c,v 1.22 2015/01/16 06:40:18 deraadt Exp $ */
/* $NetBSD: mtree.c,v 1.7 1996/09/05 23:29:22 thorpej Exp $ */
/*-
@@ -30,11 +30,11 @@
* SUCH DAMAGE.
*/
-#include <sys/param.h>
#include <sys/stat.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
+#include <limits.h>
#include <fts.h>
#include "mtree.h"
#include "extern.h"
@@ -45,7 +45,7 @@ int ftsoptions = FTS_PHYSICAL;
int cflag, dflag, eflag, iflag, lflag, nflag, qflag, rflag, sflag, tflag,
uflag, Uflag;
u_int keys;
-char fullpath[MAXPATHLEN];
+char fullpath[PATH_MAX];
static void usage(void);