This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 1.3.4 status?


and this patch fixes it.

Index: fhandler_console.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/fhandler_console.cc,v
retrieving revision 1.66
diff -u -p -r1.66 fhandler_console.cc
--- fhandler_console.cc 2001/10/22 18:39:22     1.66
+++ fhandler_console.cc 2001/10/23 05:23:17
@@ -54,7 +54,7 @@ cp_convert (UINT destcp, char * dest, UI
     }
   else
     {
-      WCHAR wbuffer[CONVERT_LIMIT]; /* same size as the maximum input,
s.b. */
+      WCHAR *wbuffer = (WCHAR *) alloca (CONVERT_LIMIT); /* same size
as the maximum inpu
t, s.b. */
       if (!MultiByteToWideChar (srccp, 0, src, size, wbuffer, sizeof
(wbuffer)))
        return FALSE;
       if (!WideCharToMultiByte (destcp, 0, wbuffer, size, dest, size,

Have fun!

Rob

----- Original Message -----
From: "Robert Collins" <robert.collins@itdomain.com.au>
To: "Robert Collins" <robert.collins@itdomain.com.au>;
<cygwin-developers@cygwin.com>
Sent: Tuesday, October 23, 2001 3:24 PM
Subject: Re: 1.3.4 status?


> got the culprit.
>
> con_to_str calls cp_convert which inlines with -finline-functions. The
> buffer there is what is getting allocated.
>
> Rob
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]