aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/termcap/termcap-2.0.8/009_all_termcap-bufsize--needs-011.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/009_all_termcap-bufsize--needs-011.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/009_all_termcap-bufsize--needs-011.patch')
-rw-r--r--recipes/termcap/termcap-2.0.8/009_all_termcap-bufsize--needs-011.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/termcap/termcap-2.0.8/009_all_termcap-bufsize--needs-011.patch b/recipes/termcap/termcap-2.0.8/009_all_termcap-bufsize--needs-011.patch
new file mode 100644
index 0000000000..3c5926d326
--- /dev/null
+++ b/recipes/termcap/termcap-2.0.8/009_all_termcap-bufsize--needs-011.patch
@@ -0,0 +1,22 @@
+--- termcap-2.0.8/termcap.c.bufsize
++++ termcap-2.0.8/termcap.c
+@@ -46,7 +46,10 @@
+ speed_t ospeed;
+ int tputs_baud_rate;
+ char PC;
+-int tgetent_bufsize = 1024;
++#if !defined(TGETENT_BUFSIZE)
++#define TGETENT_BUFSIZE 1536 /* XXX used to be 1024 */
++#endif
++int tgetent_bufsize = TGETENT_BUFSIZE;
+
+ /* We store a terminal description in a linked list. */
+ struct tc_ent {
+@@ -692,7 +695,7 @@
+ /*ARGSUSED*/
+ int main(int argc, char **argv)
+ {
+- char buf[1024];
++ char buf[TGETENT_BUFSIZE];
+ char *s;
+ char *ts;