mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Add missing off_t casts to prevent bus errors when using the 'X' command
Submitted by: Christian Weisgerber <naddy@mips.inka.de>
This commit is contained in:
parent
a83b5b293f
commit
a4aae2fa32
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34239
20
editors/bvi/files/patch-ac
Normal file
20
editors/bvi/files/patch-ac
Normal file
@ -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();
|
Loading…
Reference in New Issue
Block a user