From ec73fd87dacd5815ee71c9b81d426608151418f8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 5 Jul 2005 22:01:42 +0000 Subject: * posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not MB_CUR_MAX. (build_wcs_upper_buffer): Likewise. --- posix/regex_internal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'posix') diff --git a/posix/regex_internal.c b/posix/regex_internal.c index b3d44c3..baa5844 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 -- cgit v1.1