From 1b87c6ade712362d075c1f0ba983691976d83444 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 9 Aug 2010 10:30:52 +0000 Subject: [PATCH] [REGEX] fix bug in matcher that was causing segfault with chars of 0x80 and over. --- libdm/regex/matcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/regex/matcher.c b/libdm/regex/matcher.c index 949b5f4eb..a88c048d3 100644 --- a/libdm/regex/matcher.c +++ b/libdm/regex/matcher.c @@ -375,7 +375,7 @@ static struct dfa_state *_step_matcher(struct dm_regex *m, int c, struct dfa_sta struct dfa_state *ns; if (!(ns = cs->lookup[(unsigned char) c])) - _calc_state(m, cs, c); + _calc_state(m, cs, (unsigned char) c); if (!(ns = cs->lookup[(unsigned char) c])) return NULL; -- 2.43.5