X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_defkey.c;h=afe102931a68788f87d4cfe51edd0f7ba1eb0139;hp=ea6c5222d188b6dbd0b32d9cb103a39748e74082;hb=a28e782d7794ddeec23e7cb212dc455f0d93dc22;hpb=a6eb34d7fec8170a8715f9e53ca2f96452dd30dd diff --git a/test/demo_defkey.c b/test/demo_defkey.c index ea6c5222..afe10293 100644 --- a/test/demo_defkey.c +++ b/test/demo_defkey.c @@ -27,7 +27,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: demo_defkey.c,v 1.30 2020/02/02 23:34:34 tom Exp $ + * $Id: demo_defkey.c,v 1.31 2020/12/26 17:55:13 tom Exp $ * * Demonstrate the define_key() function. * Thomas Dickey - 2002/11/23 @@ -74,7 +74,7 @@ log_last_line(WINDOW *win) static char * visichar(int ch) { - static char temp[10]; + static char temp[20]; ch = UChar(ch); assert(ch >= 0 && ch < 256); @@ -242,7 +242,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) * keypad() initializes the corresponding data. */ for (n = 0; n < 12; ++n) { - char name[10]; + char name[20]; _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "kf%d", n + 1); fkeys[n] = tigetstr(name); }