]> sourceware.org Git - newlib-cygwin.git/commitdiff
This patch got lost in the previous checkin, accidentally:
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 8 Feb 2010 09:55:35 +0000 (09:55 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 8 Feb 2010 09:55:35 +0000 (09:55 +0000)
* nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc.

winsup/cygwin/nlsfuncs.cc

index c8994ec0e16e2c1f0598560c46ed54b46140a7f4..73336728272935eedd75eeb200f974e0906da668 100644 (file)
@@ -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;
This page took 0.034268 seconds and 5 git commands to generate.