aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mc/mc-4.6.2/mc-esc-seq.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mc/mc-4.6.2/mc-esc-seq.patch')
-rw-r--r--recipes/mc/mc-4.6.2/mc-esc-seq.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/mc/mc-4.6.2/mc-esc-seq.patch b/recipes/mc/mc-4.6.2/mc-esc-seq.patch
new file mode 100644
index 0000000000..b9ec04a75a
--- /dev/null
+++ b/recipes/mc/mc-4.6.2/mc-esc-seq.patch
@@ -0,0 +1,11 @@
+--- mc-4.6.2/src/util.c
++++ mc-4.6.2/src/util.c
+@@ -1205,6 +1205,8 @@
+ /* strchr() matches trailing binary 0 */
+ while (*(++r) && strchr ("0123456789;?", *r));
+ }
++ else if (*r == '(')
++ r++;
+
+ /*
+ * Now we are at the last character of the sequence.