This patch got lost in the previous checkin, accidentally:

* nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc.
This commit is contained in:
Corinna Vinschen 2010-02-08 09:55:35 +00:00
parent f5a73638cd
commit 4dce4255ff
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ lc_mbstowcs (mbtowc_p f_mbtowc, const char *charset,
n = 1; n = 1;
while (n > 0) while (n > 0)
{ {
bytes = f_mbtowc (_REENT, pwcs, t, MB_CUR_MAX, charset, &state); bytes = f_mbtowc (_REENT, pwcs, t, n, charset, &state);
if (bytes == (size_t) -1) if (bytes == (size_t) -1)
{ {
state.__count = 0; state.__count = 0;