diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-07-05 22:01:42 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-07-05 22:01:42 +0000 |
commit | ec73fd87dacd5815ee71c9b81d426608151418f8 (patch) | |
tree | a0f20ddb14d394d7cc3ac1e81d4a85c5c6ee77d4 | |
parent | a383200851fa860d6551b07dee8ef14caa224e92 (diff) | |
download | glibc-ec73fd87dacd5815ee71c9b81d426608151418f8.tar.gz glibc-ec73fd87dacd5815ee71c9b81d426608151418f8.tar.xz glibc-ec73fd87dacd5815ee71c9b81d426608151418f8.zip |
* posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not
MB_CUR_MAX. (build_wcs_upper_buffer): Likewise.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | posix/regex_internal.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog index 49ae889db9..195045c02a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-07-05 Ulrich Drepper <drepper@redhat.com> + * posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not + MB_CUR_MAX. + (build_wcs_upper_buffer): Likewise. + * csu/elf-init.c (__libc_csu_fini): Pretty printing. 2005-07-02 Roland McGrath <roland@redhat.com> diff --git a/posix/regex_internal.c b/posix/regex_internal.c index b3d44c368d..baa58443ac 100644 --- a/posix/regex_internal.c +++ b/posix/regex_internal.c @@ -214,8 +214,8 @@ build_wcs_buffer (pstr) re_string_t *pstr; { #ifdef _LIBC - unsigned char buf[MB_CUR_MAX]; - assert (MB_CUR_MAX >= pstr->mb_cur_max); + unsigned char buf[MB_LEN_MAX]; + assert (MB_LEN_MAX >= pstr->mb_cur_max); #else unsigned char buf[64]; #endif @@ -285,8 +285,8 @@ build_wcs_upper_buffer (pstr) int src_idx, byte_idx, end_idx, remain_len; size_t mbclen; #ifdef _LIBC - char buf[MB_CUR_MAX]; - assert (MB_CUR_MAX >= pstr->mb_cur_max); + char buf[MB_LEN_MAX]; + assert (MB_LEN_MAX >= pstr->mb_cur_max); #else char buf[64]; #endif |