summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rmt/rmt.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-09-05 17:05:31 +0000
committerache <ache@FreeBSD.org>2001-09-05 17:05:31 +0000
commit6aa494c109e1e91310a002726f1e6060cf44f2cd (patch)
tree7d9887a1f40e950d7cfcc3ffdc6071d4fae9a0f6 /usr.sbin/rmt/rmt.c
parentc05780a8fcd64d3be781ab84ac771cc159a44258 (diff)
downloadFreeBSD-src-6aa494c109e1e91310a002726f1e6060cf44f2cd.zip
FreeBSD-src-6aa494c109e1e91310a002726f1e6060cf44f2cd.tar.gz
atol -> strtoll, for file offset
Diffstat (limited to 'usr.sbin/rmt/rmt.c')
-rw-r--r--usr.sbin/rmt/rmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c
index c3e3615..5315208 100644
--- a/usr.sbin/rmt/rmt.c
+++ b/usr.sbin/rmt/rmt.c
@@ -130,7 +130,7 @@ top:
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;
OpenPOWER on IntegriCloud