diff options
author | Andreas Schwab <schwab@redhat.com> | 2010-05-19 13:03:56 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2010-05-19 13:03:56 +0200 |
commit | 181c13586f12a9a15ed446b1a9594a5a8831d8d1 (patch) | |
tree | 52c4786d2d0448e9cbe9f4d25fadc7e7cee52924 /posix | |
parent | 9100611515956d730bac91fe23976978b0ab70a6 (diff) | |
parent | 4828935d386854c19275dbe39e07dbd4bd539d1c (diff) |
Merge remote branch 'origin/master' into fedora/master
Diffstat (limited to 'posix')
-rw-r--r-- | posix/regexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regexec.c b/posix/regexec.c index f87701672b..7f7ae3123f 100644 --- a/posix/regexec.c +++ b/posix/regexec.c @@ -4031,7 +4031,7 @@ find_collation_sequence_value (const unsigned char *mbs, size_t mbs_len) /* Skip the collation sequence value. */ idx += sizeof (uint32_t); /* Skip the wide char sequence of the collating element. */ - idx = idx + sizeof (uint32_t) * (extra[idx] + 1); + idx = idx + sizeof (uint32_t) * (*(int32_t *) (extra + idx) + 1); /* If we found the entry, return the sequence value. */ if (found) return *(uint32_t *) (extra + idx); |