From 949c0ec28c86623b83ae56651c00d1bd3c3a5d0c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 10 Mar 2008 17:23:50 +0000 Subject: * fhandler.h (class fhandler_console): Add write_buf as pointer to temporary buffer space. * fhandler_console.cc (CONVERT_LIMIT): Define as NT_MAX_PATH. Add comment. (fhandler_console::write_normal): Use write_buf throughout. (fhandler_console::write): Use tmp_pathbuf to allocate write_buf. --- winsup/cygwin/fhandler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index cedf7f987..f78861cde 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -884,7 +884,7 @@ class dev_console bool raw_win32_keyboard_mode; inline UINT get_console_cp (); - bool con_to_str (char *d, int dlen, WCHAR w); + DWORD con_to_str (char *d, int dlen, WCHAR w); DWORD str_to_con (PWCHAR d, const char *s, DWORD sz); void set_color (HANDLE); bool fillin_info (HANDLE); @@ -906,6 +906,7 @@ class fhandler_console: public fhandler_termios int len; unsigned char buf[4]; /* Max len of valid UTF-8 sequence. */ } trunc_buf; + PWCHAR write_buf; /* Output calls */ void set_default_attr (); -- cgit v1.2.3