Mail Archives: cygwin-developers/2001/10/23/01:24:07
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 DOT collins AT itdomain DOT com DOT au>
To: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>;
<cygwin-developers AT cygwin DOT 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
>
>
- Raw text -