]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/demo_defkey.c
ncurses 6.2 - patch 20201227
[ncurses.git] / test / demo_defkey.c
index ea6c5222d188b6dbd0b32d9cb103a39748e74082..afe102931a68788f87d4cfe51edd0f7ba1eb0139 100644 (file)
@@ -27,7 +27,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
  * 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
  *
  * 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 *
 visichar(int ch)
 {
-    static char temp[10];
+    static char temp[20];
 
     ch = UChar(ch);
     assert(ch >= 0 && ch < 256);
 
     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) {
      * 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);
     }
        _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "kf%d", n + 1);
        fkeys[n] = tigetstr(name);
     }