From 5d078bb36bda539f6e4b3167b7505b5f3bac4dcc Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 5 Sep 2001 17:05:31 +0000 Subject: [PATCH] atol -> strtoll, for file offset --- usr.sbin/rmt/rmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c index c3e36150e349..5315208362de 100644 --- a/usr.sbin/rmt/rmt.c +++ b/usr.sbin/rmt/rmt.c @@ -130,7 +130,7 @@ main(argc, argv) getstring(count); getstring(pos); DEBUG2("rmtd: L %s %s\n", count, pos); - rval = lseek(tape, (off_t)atol(count), atoi(pos)); + rval = lseek(tape, (off_t)strtoll(count, NULL, 10), atoi(pos)); if (rval < 0) goto ioerror; goto respond;