Use MB_LEN_MAX instead of MB_CUR_MAX as the length of an array, since the latter does not need to be a constant value, meaning it is illegal as an array size

darcs-hash:20070122165125-ac50b-884456df993125e0dc16cd8dfed1e63d350d05dd.gz
This commit is contained in:
axel 2007-01-23 02:51:25 +10:00
parent 565970b8ca
commit 2bba0f7b8f

View file

@ -377,7 +377,7 @@ int writech( wint_t ch )
{
mbstate_t state;
int i;
char buff[MB_CUR_MAX+1];
char buff[MB_LEN_MAX+1];
size_t bytes;
if( ( ch >= ENCODE_DIRECT_BASE) &&