summaryrefslogtreecommitdiff
path: root/package/mc/patches/patch-lib_tty_tty-ncurses_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-17 22:24:44 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-17 22:24:44 +0100
commitda133cad10885ca36be26b1b043c737e295a4cd4 (patch)
tree3fb8e1189dce7188c4681144f96982d30c4511bd /package/mc/patches/patch-lib_tty_tty-ncurses_c
parent638c9f989542642d52859a56913ae5c2ace93e69 (diff)
parent642a45334676311b50bd2b45ae49c45f8b86c86d (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Conflicts: TODO
Diffstat (limited to 'package/mc/patches/patch-lib_tty_tty-ncurses_c')
-rw-r--r--package/mc/patches/patch-lib_tty_tty-ncurses_c27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/mc/patches/patch-lib_tty_tty-ncurses_c b/package/mc/patches/patch-lib_tty_tty-ncurses_c
new file mode 100644
index 000000000..5058bd79e
--- /dev/null
+++ b/package/mc/patches/patch-lib_tty_tty-ncurses_c
@@ -0,0 +1,27 @@
+--- mc-4.8.11.orig/lib/tty/tty-ncurses.c 2013-11-29 19:27:07.000000000 +0100
++++ mc-4.8.11/lib/tty/tty-ncurses.c 2014-02-12 12:40:05.000000000 +0100
+@@ -65,7 +65,7 @@
+
+ /*** file scope macro definitions ****************************************************************/
+
+-#if defined(_AIX) && !defined(CTRL)
++#if !defined(CTRL)
+ #define CTRL(x) ((x) & 0x1f)
+ #endif
+
+@@ -530,6 +530,7 @@ tty_print_anychar (int c)
+ if (mc_global.utf8_display || c > 255)
+ {
+ int res;
++ unsigned char str[UTF8_CHAR_LEN + 1];
+
+ res = g_unichar_to_utf8 (c, (char *) str);
+ if (res == 0)
+@@ -540,7 +541,6 @@ tty_print_anychar (int c)
+ }
+ else
+ {
+- unsigned char str[UTF8_CHAR_LEN + 1];
+ const char *s;
+
+ str[res] = '\0';