diff options
Diffstat (limited to 'sbin/tunefs/tunefs.c')
| -rw-r--r-- | sbin/tunefs/tunefs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index 68df1a8548c..7cd601ff751 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tunefs.c,v 1.34 2014/05/20 21:11:16 krw Exp $ */ +/* $OpenBSD: tunefs.c,v 1.35 2015/01/16 06:40:01 deraadt Exp $ */ /* $NetBSD: tunefs.c,v 1.33 2005/01/19 20:46:16 xtraeme Exp $ */ /* @@ -33,7 +33,7 @@ /* * tunefs: change layout parameters to an existing file system. */ -#include <sys/param.h> +#include <sys/param.h> /* DEV_BSIZE MAXBSIZE MAXFRAG */ #include <ufs/ufs/dinode.h> #include <ufs/ffs/fs.h> @@ -48,6 +48,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <limits.h> #include <util.h> /* the optimization warning string template */ @@ -308,7 +309,7 @@ bread(daddr_t blk, char *buffer, int cnt, const char *file) static int openpartition(char *name, int flags, char **devicep) { - char rawspec[MAXPATHLEN], *p; + char rawspec[PATH_MAX], *p; struct fstab *fs; int fd; |
