aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/ebrowse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/ebrowse.c')
-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';