summaryrefslogtreecommitdiff
path: root/editors/nvi/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'editors/nvi/patches/patch-aj')
-rw-r--r--editors/nvi/patches/patch-aj20
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/nvi/patches/patch-aj b/editors/nvi/patches/patch-aj
new file mode 100644
index 00000000000..50b11691287
--- /dev/null
+++ b/editors/nvi/patches/patch-aj
@@ -0,0 +1,20 @@
+$NetBSD: patch-aj,v 1.1 2006/12/12 03:37:30 dogcow Exp $
+
+--- ../common/key.c.orig 2001-06-26 01:19:10.000000000 +1000
++++ ../common/key.c 2006-12-03 15:21:22.000000000 +1000
+@@ -829,11 +829,14 @@
+ {
+ WIN *wp;
+ size_t new_nelem, olen;
++ char *i_event;
+
+ wp = sp->wp;
+ new_nelem = wp->i_nelem + add;
+ olen = wp->i_nelem * sizeof(wp->i_event[0]);
+- BINC_RET(sp, (char *)wp->i_event, olen, new_nelem * sizeof(wp->i_event[0]));
++ i_event = (char *)wp->i_event;
++ BINC_RET(sp, i_event, olen, new_nelem * sizeof(wp->i_event[0]));
++ wp->i_event = (EVENT *) i_event;
+ wp->i_nelem = olen / sizeof(wp->i_event[0]);
+ return (0);
+ }