*** support/ansi.c.MNE Thu Nov 13 10:26:20 2003 --- support/ansi.c Mon Nov 17 10:32:45 2003 *************** *** 54,60 **** #if HAVE_WCRTOMB /* Use the re-entrant function to perform the conversion */ mbstate_t state; ! char buf[MB_CUR_MAX+1]; size_t chlen; unsigned short ch; unsigned long len = 0; --- 54,60 ---- #if HAVE_WCRTOMB /* Use the re-entrant function to perform the conversion */ mbstate_t state; ! char buf[MB_LEN_MAX+1]; size_t chlen; unsigned short ch; unsigned long len = 0; *************** *** 82,88 **** /* Use the non re-entrant function to perform the conversion and just hope that the underlying libc takes care of the thread-safety issues for us */ ! char buf[MB_CUR_MAX]; int chlen; unsigned long len = 0; wctomb((char *)0, 0); --- 82,88 ---- /* Use the non re-entrant function to perform the conversion and just hope that the underlying libc takes care of the thread-safety issues for us */ ! char buf[MB_LEN_MAX]; int chlen; unsigned long len = 0; wctomb((char *)0, 0); *************** *** 134,140 **** #if HAVE_WCRTOMB /* Use the re-entrant function to perform the conversion */ mbstate_t state; ! char buf[MB_CUR_MAX+1]; size_t chlen; unsigned short ch; unsigned long len = 0; --- 134,140 ---- #if HAVE_WCRTOMB /* Use the re-entrant function to perform the conversion */ mbstate_t state; ! char buf[MB_LEN_MAX+1]; size_t chlen; unsigned short ch; unsigned long len = 0; *************** *** 175,181 **** /* Use the non re-entrant function to perform the conversion and just hope that the underlying libc takes care of the thread-safety issues for us */ ! char buf[MB_CUR_MAX]; int chlen; unsigned long len = 0; wctomb((char *)0, 0); --- 175,181 ---- /* Use the non re-entrant function to perform the conversion and just hope that the underlying libc takes care of the thread-safety issues for us */ ! char buf[MB_LEN_MAX]; int chlen; unsigned long len = 0; wctomb((char *)0, 0); *************** *** 399,405 **** #ifdef IL_CONFIG_LATIN1 return charCount; #else ! return charCount * MB_CUR_MAX; #endif } --- 399,405 ---- #ifdef IL_CONFIG_LATIN1 return charCount; #else ! return charCount * MB_LEN_MAX; #endif }