aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/termcap/termcap-2.0.8/008_all_termcap-buffer.patch
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2010-11-12 00:00:20 -0500
committerCliff Brake <cbrake@bec-systems.com>2010-11-12 00:00:20 -0500
commit3c6efe8f8abc16668ca5e9cdf7a46665dac87172 (patch)
tree642c13416b99e80f0871cdc6668e832e635dfb48 /recipes/termcap/termcap-2.0.8/008_all_termcap-buffer.patch
parentc400c874f2ac9233b8a43a73309b6e7907289c54 (diff)
parent13fbe7253c95881ede787004a4c3a1c31502e5c6 (diff)
downloadopenembedded-testing.tar.gz
openembedded-testing.tar.bz2
openembedded-testing.zip
Merge branch 'master' into testing-nexttested_2010-11-12testing
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 0000000000..f177149990
--- /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++;