diff options
author | jedgar <jedgar@FreeBSD.org> | 2000-10-26 08:00:10 +0800 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2000-10-26 08:00:10 +0800 |
commit | d88d19febfd864bb6ae6afe4fb2562f8484e2881 (patch) | |
tree | b63f771ced1fce98868bd794965307e5144599c4 /editors/bvi | |
parent | 35f606389de1d1c42ef92f8a72f64eb4de5467d7 (diff) | |
download | freebsd-ports-gnome-d88d19febfd864bb6ae6afe4fb2562f8484e2881.tar.gz freebsd-ports-gnome-d88d19febfd864bb6ae6afe4fb2562f8484e2881.tar.zst freebsd-ports-gnome-d88d19febfd864bb6ae6afe4fb2562f8484e2881.zip |
Add missing off_t casts to prevent bus errors when using the 'X' command
Submitted by: Christian Weisgerber <naddy@mips.inka.de>
Diffstat (limited to 'editors/bvi')
-rw-r--r-- | editors/bvi/files/patch-ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/bvi/files/patch-ac b/editors/bvi/files/patch-ac new file mode 100644 index 000000000000..12dab0f0015a --- /dev/null +++ b/editors/bvi/files/patch-ac @@ -0,0 +1,20 @@ +--- bvi.c.orig Tue Oct 24 09:09:08 2000 ++++ bvi.c Wed Oct 25 18:42:07 2000 +@@ -619,7 +619,7 @@ + if (count > 0) + do_delete((off_t)count, current); + else if (count < 0) +- do_back(-count, current); ++ do_back((off_t)-count, current); + if (ch == 'c') { + precount = 1; + undo_count = edit('i'); +@@ -637,7 +637,7 @@ + break; + case 'X': + sprintf(rep_buf, "%ldX", precount); +- do_back(precount, current); ++ do_back((off_t)precount, current); + break; + default: + flushinp(); |