* fhandler_console.cc (create_invisible_console_workaround): Fix size of cmd in

the way originally intended.
This commit is contained in:
Christopher Faylor 2009-08-10 15:25:58 +00:00
parent d63db09bf8
commit 78d959ce6f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-08-10 Christopher Faylor <me+cygwin@cgf.cx>
* fhandler_console.cc (create_invisible_console_workaround): Fix size
of cmd in the way originally intended.
2009-08-10 Corinna Vinschen <corinna@vinschen.de>
* fhandler_console.cc (create_invisible_console_workaround): Fix

View File

@ -2008,7 +2008,7 @@ fhandler_console::create_invisible_console_workaround ()
STARTUPINFOW si = {};
PROCESS_INFORMATION pi;
size_t len = helper.get_wide_win32_path_len ();
WCHAR cmd[len + (2 * strlen ("0xffffffff")) + 2 /* spaces */ + 1];
WCHAR cmd[len + (2 * strlen (" 0xffffffff")) + 1];
WCHAR title[] = L"invisible cygwin console";
helper.get_wide_win32_path (cmd);