aboutsummaryrefslogtreecommitdiff
path: root/editors/bvi
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2000-10-26 00:00:10 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2000-10-26 00:00:10 +0000
commita4aae2fa32d2ea685865300c1faa31c9d268ebd7 (patch)
tree079b6f7b9cdc182afceaf3e9f379cbf4cb4b5cfc /editors/bvi
parenta83b5b293f0eba0a5a87a14548f6fa522ac78c1b (diff)
downloadports-a4aae2fa32d2ea685865300c1faa31c9d268ebd7.tar.gz
ports-a4aae2fa32d2ea685865300c1faa31c9d268ebd7.zip
Add missing off_t casts to prevent bus errors when using the 'X' command
Submitted by: Christian Weisgerber <naddy@mips.inka.de>
Notes
Notes: svn path=/head/; revision=34239
Diffstat (limited to 'editors/bvi')
-rw-r--r--editors/bvi/files/patch-ac20
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();