aboutsummaryrefslogtreecommitdiff
path: root/recipes/termcap/termcap-2.0.8/008_all_termcap-buffer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/termcap/termcap-2.0.8/008_all_termcap-buffer.patch')
-rw-r--r--recipes/termcap/termcap-2.0.8/008_all_termcap-buffer.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/termcap/termcap-2.0.8/008_all_termcap-buffer.patch b/recipes/termcap/termcap-2.0.8/008_all_termcap-buffer.patch
new file mode 100644
index 0000000..f177149
--- /dev/null
+++ b/recipes/termcap/termcap-2.0.8/008_all_termcap-buffer.patch
@@ -0,0 +1,13 @@
+--- termcap-2.0.8.orig/termcap.c
++++ termcap-2.0.8/termcap.c
+@@ -471,6 +471,10 @@
+ for(bp = s; *bp; bp++) {
+ *sp++ = *bp;
+ count++;
++ if (count >= maxlen-1) {
++ write(2, "tgetent: warning: termcap entry too long\n", 41);
++ break;
++ }
+ }
+ *sp++ = ':';
+ count++;