From: Corinna Vinschen Date: Mon, 8 Feb 2010 09:55:35 +0000 (+0000) Subject: This patch got lost in the previous checkin, accidentally: X-Git-Tag: gdb_7_1-2010-02-18-branchpoint~54 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=4dce4255ff6875e00053b8293073250afdf9bd26;p=newlib-cygwin.git This patch got lost in the previous checkin, accidentally: * nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc. --- diff --git a/winsup/cygwin/nlsfuncs.cc b/winsup/cygwin/nlsfuncs.cc index c8994ec0e..733367282 100644 --- a/winsup/cygwin/nlsfuncs.cc +++ b/winsup/cygwin/nlsfuncs.cc @@ -294,7 +294,7 @@ lc_mbstowcs (mbtowc_p f_mbtowc, const char *charset, n = 1; 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) { state.__count = 0;