diff options
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.patch | 22 |
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; |