twin-environment: Install patches/

This commit is contained in:
Kamil Rytarowski 2020-10-26 02:38:50 +01:00
parent d7472ace21
commit 8757f512fb
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
$NetBSD$
Fix buffer overflow (on NetBSD 9.99.74).
--- server/hw/hw_tty_common/driver_termcap.h.orig 2019-12-23 20:33:52.000000000 +0000
+++ server/hw/hw_tty_common/driver_termcap.h
@@ -88,7 +88,7 @@ static udat termcap_LookupKey(udat *Shif
}
static char *termcap_extract(CONST char *cap, char **dest) {
- char buf[20], *d = buf, *s = tgetstr(cap, &d);
+ char buf[1024], *d = buf, *s = tgetstr(cap, &d);
if (!s || !*s) {
return *dest = CloneStr("");