summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-20 08:21:41 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-20 08:21:41 +0000
commitcc70bcf9038f0eac57ec1f0becd7b500fbad8686 (patch)
tree33b2a796b5669595baa3dc8abedbc30bf75204f4 /regex.c
parent2bcb001084e404a16de41f4270f0785ac2258f85 (diff)
to open CVS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 a1aeb2ec6f..35a55ad23e 100644
--- a/regex.c
+++ b/regex.c
@@ -3062,7 +3062,7 @@ typedef union
this in conjunction with AT_STRINGS_BEG. */
#define IS_A_LETTER(d) (SYNTAX(*(d)) == Sword || \
(current_mbctype ? \
- mbctab[*(d)] == 1 : \
+ (mbctab[*(d)] == 1 && (d)+1<dend): \
SYNTAX(*(d)) == Sword2))
static void