diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-06-30 05:54:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-06-30 05:54:32 +0000 |
commit | f92b3e954253823b0eb9994c28413c453150da4a (patch) | |
tree | 68b32dcf064bd43c1a879be555f4d0ea91c95342 /usr.sbin/rmt | |
parent | e05f8c364b147303329e1254ffd271c59a74ac8c (diff) |
lseek(2) takes an off_t which is quad_t so we use strtoq(3) not atoi(3).
Diffstat (limited to 'usr.sbin/rmt')
-rw-r--r-- | usr.sbin/rmt/rmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c index cb665ef802b..133b180b3ad 100644 --- a/usr.sbin/rmt/rmt.c +++ b/usr.sbin/rmt/rmt.c @@ -39,7 +39,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.3 1997/01/17 15:46:55 millert Exp $"; +static char rcsid[] = "$Id: rmt.c,v 1.4 1997/06/30 05:54:31 millert Exp $"; #endif /* not lint */ /* @@ -122,7 +122,7 @@ top: case 'L': getstring(count); getstring(pos); DEBUG2("rmtd: L %s %s\n", count, pos); - rval = lseek(tape, atoi(count), atoi(pos)); + rval = lseek(tape, strtoq(count, NULL, 0), atoi(pos)); if (rval < 0) goto ioerror; goto respond; |