aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPo Lu2022-01-21 15:27:35 +0800
committerPo Lu2022-01-21 15:27:35 +0800
commit03f4a2ff640d50af11a0131498f15ebf6ed16d30 (patch)
treec529aff0851a951019a946cd67f2b265814f9e00 /lib-src
parent2b4f0b5f3b2e9b231b391207656df1328b13652a (diff)
parent11ea45c9e47d13e13e3e539551e2df300f995c11 (diff)
downloademacs-03f4a2ff640d50af11a0131498f15ebf6ed16d30.tar.gz
emacs-03f4a2ff640d50af11a0131498f15ebf6ed16d30.zip
Merge from origin/emacs-28
11ea45c9e4 Fix UB in ebrowse ba57b78064 Fix execute-extended-command-for-buffer in fundamental-mode ef0c1d4c2c Add workaround to handle a problem with Enlightenment WM (...
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ebrowse.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index 04ae018464e..ac7e7901878 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -1925,7 +1925,15 @@ matching_regexp (void)
1925 *--s = *--t; 1925 *--s = *--t;
1926 1926
1927 if (*s == '"' || *s == '\\') 1927 if (*s == '"' || *s == '\\')
1928 *--s = '\\'; 1928 {
1929 if (s > matching_regexp_buffer)
1930 *--s = '\\';
1931 else
1932 {
1933 s++;
1934 break;
1935 }
1936 }
1929 } 1937 }
1930 1938
1931 *(matching_regexp_end_buf - 1) = '\0'; 1939 *(matching_regexp_end_buf - 1) = '\0';