diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-14 18:34:49 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-14 18:34:49 +0000 |
commit | 3f655d51d173e28f51350a362ca11460660bc20f (patch) | |
tree | ca0d8805f2a1e76176a7633fddd1071a96673d55 /usr.sbin/rmt/rmt.c | |
parent | 9045d5e4e07d30d5b9e6e2f4b9f0db20f306ca4e (diff) |
Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.
Fix a type mismatch in ftp's "page" command and could make transfers restart
at the wrong position.
ok and a ull->ll tweak from natano@, ok tedu@
Diffstat (limited to 'usr.sbin/rmt/rmt.c')
-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 8ea8c184c4f..e6cc762f2b0 100644 --- a/usr.sbin/rmt/rmt.c +++ b/usr.sbin/rmt/rmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmt.c,v 1.19 2015/11/04 21:27:03 tedu Exp $ */ +/* $OpenBSD: rmt.c,v 1.20 2016/08/14 18:34:48 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -209,7 +209,7 @@ top: getstring(count, sizeof(count)); getstring(pos, sizeof(pos)); DEBUG2("rmtd: L %s %s\n", count, pos); - orval = lseek(tape, strtoq(count, NULL, 0), atoi(pos)); + orval = lseek(tape, strtoll(count, NULL, 0), atoi(pos)); if (orval == -1) goto ioerror; goto respond; |