From 0b1ae65391e4754e37f3165d59d09347ceed01ad Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 13 Aug 2001 02:25:01 +0000 Subject: merge from gcc --- libiberty/regex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libiberty/regex.c') diff --git a/libiberty/regex.c b/libiberty/regex.c index 555d3bbf66a..f22047caa03 100644 --- a/libiberty/regex.c +++ b/libiberty/regex.c @@ -3059,7 +3059,7 @@ PREFIX(regex_compile) (ARG_PREFIX(pattern), ARG_PREFIX(size), syntax, bufp) /* First compare the hashing value. */ if (symb_table[2 * elem] == hash && c1 == extra[symb_table[2 * elem + 1]] - && memcmp (str, + && memcmp (char_str, &extra[symb_table[2 * elem + 1] + 1], c1) == 0) { @@ -3079,7 +3079,7 @@ PREFIX(regex_compile) (ARG_PREFIX(pattern), ARG_PREFIX(size), syntax, bufp) in the table. */ idx += 1 + extra[idx]; /* Adjust for the alignment. */ - idx = (idx + 3) & ~4; + idx = (idx + 3) & ~3; str[0] = (wchar_t) idx + 4; } -- cgit v1.2.1