diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-02-08 09:55:35 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-02-08 09:55:35 +0000 |
commit | 4dce4255ff6875e00053b8293073250afdf9bd26 (patch) | |
tree | 48c4e69feb93bd3df1d4ffa52b017cd396d23476 /winsup/cygwin/nlsfuncs.cc | |
parent | f5a73638cd98e01bad97fb3f1a69ffef7d07c1c5 (diff) | |
download | cygnal-4dce4255ff6875e00053b8293073250afdf9bd26.tar.gz cygnal-4dce4255ff6875e00053b8293073250afdf9bd26.tar.bz2 cygnal-4dce4255ff6875e00053b8293073250afdf9bd26.zip |
This patch got lost in the previous checkin, accidentally:
* nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc.
Diffstat (limited to 'winsup/cygwin/nlsfuncs.cc')
-rw-r--r-- | winsup/cygwin/nlsfuncs.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |