aboutsummaryrefslogtreecommitdiff
path: root/libiberty/regex.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-08-13 02:25:01 +0000
committerDJ Delorie <dj@redhat.com>2001-08-13 02:25:01 +0000
commita9022147a2a0acc50711501271a727e6aaa7acc8 (patch)
tree4c3ea72a0c507c1dbd5f89c8b14eed313fbe1fb1 /libiberty/regex.c
parent8ce8e6c1074ad3ad92d65492b601e1903af43761 (diff)
downloadgdb-a9022147a2a0acc50711501271a727e6aaa7acc8.zip
gdb-a9022147a2a0acc50711501271a727e6aaa7acc8.tar.gz
gdb-a9022147a2a0acc50711501271a727e6aaa7acc8.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/regex.c')
-rw-r--r--libiberty/regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/regex.c b/libiberty/regex.c
index 555d3bb..f22047c 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;
}