summaryrefslogtreecommitdiff
path: root/usr.bin/less/prompt.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-02-20 19:00:40 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-02-20 19:00:40 +0000
commit90f7a4f36dafddbfdf9ae5f620d51ccf949e4cbf (patch)
treec69850aebd62b681d020cd7e6c88f7650954c8ca /usr.bin/less/prompt.c
parentf01832fa75f239a1281e848cd6c0812b80318233 (diff)
First step at supporting files > 2gig. Use off_t as POSITION
and replace get_maxlong() with a get_maxpos() and modify percentage() appropriately. There are still problems seeking to the end of a large file and line numbers should probably be 64bit (or at the very least unsigned). This has been sitting in my tree for quite some time now so I am committing what I have now since I don't know when I'll have a chance to really finish it.
Diffstat (limited to 'usr.bin/less/prompt.c')
-rw-r--r--usr.bin/less/prompt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/prompt.c b/usr.bin/less/prompt.c
index 2e0b62cc6bf..6fa74bc04d5 100644
--- a/usr.bin/less/prompt.c
+++ b/usr.bin/less/prompt.c
@@ -98,7 +98,7 @@ setmp()
ap_pos(pos)
POSITION pos;
{
- sprintf(mp, "%ld", (long)pos);
+ sprintf(mp, "%qd", pos);
setmp();
}