diff options
Diffstat (limited to 'usr.sbin/rmt/rmt.c')
| -rw-r--r-- | usr.sbin/rmt/rmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c index 7e457121f71..28d31dd1c33 100644 --- a/usr.sbin/rmt/rmt.c +++ b/usr.sbin/rmt/rmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmt.c,v 1.14 2013/12/03 00:20:03 deraadt Exp $ */ +/* $OpenBSD: rmt.c,v 1.15 2015/01/16 06:40:20 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -38,12 +38,12 @@ #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/mtio.h> -#include <sys/param.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> +#include <limits.h> int tape = -1; @@ -51,7 +51,7 @@ char *record; int maxrecsize = -1; #define STRSIZE 64 -char device[MAXPATHLEN]; +char device[PATH_MAX]; char count[STRSIZE], mode[STRSIZE], pos[STRSIZE], op[STRSIZE]; char resp[BUFSIZ]; |
