summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index 9a38c00..49832ad 100644
--- a/regex.c
+++ b/regex.c
@@ -4177,7 +4177,7 @@ re_match(bufp, string_arg, size, pos, regs)
if (IS_A_LETTER(d)) break;
else goto fail;
}
- if (AT_STRINGS_BEG(d)) {
+ if (AT_STRINGS_END(d)) {
if (PREV_IS_A_LETTER(d)) break;
else goto fail;
}