aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mc/mc-4.6.2/mc-utf8-nlink.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mc/mc-4.6.2/mc-utf8-nlink.patch')
-rw-r--r--recipes/mc/mc-4.6.2/mc-utf8-nlink.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/mc/mc-4.6.2/mc-utf8-nlink.patch b/recipes/mc/mc-4.6.2/mc-utf8-nlink.patch
new file mode 100644
index 0000000000..9e361630c4
--- /dev/null
+++ b/recipes/mc/mc-4.6.2/mc-utf8-nlink.patch
@@ -0,0 +1,11 @@
+--- mc-4.6.2/src/screen.c
++++ mc-4.6.2/src/screen.c
+@@ -671,7 +671,7 @@
+ SLsmg_write_nwchars (((wchar_t *) buffer)
+ + txtlen - n2, n2);
+ } else
+- SLsmg_write_nwchars ((wchar_t *) buffer, len);
++ SLsmg_write_nwchars ((wchar_t *) buffer + still, len);
+ } else {
+ printw ("%*s", still, "");
+ SLsmg_write_nwchars ((wchar_t *) buffer, txtlen);