summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2008-03-15 14:21:08 +0000
committerAndreas Schwab <schwab@suse.de>2008-03-15 14:21:08 +0000
commit0e2501ed344f5c8e251bcdca981f5d81dd78f663 (patch)
tree325a4ec42f6e7dd85af74010c6f7f6614098e9b1 /src/regex.c
parentc70a68dbf138528bdbdd84fdeee703343698d1e9 (diff)
downloademacs-0e2501ed344f5c8e251bcdca981f5d81dd78f663.tar.gz
(re_match_2_internal): Correct matching of eight bit
characters in unibyte strings.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c
index e19183fcf52..1400a7daa77 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -5590,6 +5590,8 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
if (buf_ch < 0)
buf_ch = *d;
}
+ else
+ buf_ch = *d;
if (buf_ch != pat_ch)
{
d = dfail;