From d061cdbee42eb1da2c081d154b23a77670baf7e3 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 7 Mar 2005 16:08:20 +0000 Subject: make device MAXPATHLEN long instead of 64, fixes remote dumps with long target file names, PR4137, ok miod beck mcbride deraadt --- usr.sbin/rmt/rmt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.sbin/rmt') diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c index 0f0949af606..cc5e196dc0c 100644 --- a/usr.sbin/rmt/rmt.c +++ b/usr.sbin/rmt/rmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmt.c,v 1.11 2003/06/02 23:36:54 millert Exp $ */ +/* $OpenBSD: rmt.c,v 1.12 2005/03/07 16:08:19 henning Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -37,7 +37,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)rmt.c 5.6 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: rmt.c,v 1.11 2003/06/02 23:36:54 millert Exp $"; +static char rcsid[] = "$Id: rmt.c,v 1.12 2005/03/07 16:08:19 henning Exp $"; #endif /* not lint */ /* @@ -50,6 +50,7 @@ static char rcsid[] = "$Id: rmt.c,v 1.11 2003/06/02 23:36:54 millert Exp $"; #include #include #include +#include #include #include #include @@ -61,7 +62,7 @@ char *record; int maxrecsize = -1; #define STRSIZE 64 -char device[STRSIZE]; +char device[MAXPATHLEN]; char count[STRSIZE], mode[STRSIZE], pos[STRSIZE], op[STRSIZE]; char resp[BUFSIZ]; -- cgit v1.2.3