patch-lib_tty_tty-ncurses_c 801 B

123456789101112131415161718192021222324252627
  1. --- mc-4.8.11.orig/lib/tty/tty-ncurses.c 2013-11-29 19:27:07.000000000 +0100
  2. +++ mc-4.8.11/lib/tty/tty-ncurses.c 2014-02-12 12:40:05.000000000 +0100
  3. @@ -65,7 +65,7 @@
  4. /*** file scope macro definitions ****************************************************************/
  5. -#if defined(_AIX) && !defined(CTRL)
  6. +#if !defined(CTRL)
  7. #define CTRL(x) ((x) & 0x1f)
  8. #endif
  9. @@ -530,6 +530,7 @@ tty_print_anychar (int c)
  10. if (mc_global.utf8_display || c > 255)
  11. {
  12. int res;
  13. + unsigned char str[UTF8_CHAR_LEN + 1];
  14. res = g_unichar_to_utf8 (c, (char *) str);
  15. if (res == 0)
  16. @@ -540,7 +541,6 @@ tty_print_anychar (int c)
  17. }
  18. else
  19. {
  20. - unsigned char str[UTF8_CHAR_LEN + 1];
  21. const char *s;
  22. str[res] = '\0';