From 78d959ce6f7425580a4f1bdefef3bc4a8cfc29ff Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 10 Aug 2009 15:25:58 +0000 Subject: [PATCH] * fhandler_console.cc (create_invisible_console_workaround): Fix size of cmd in the way originally intended. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_console.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2d2435659..8a2912a2c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-08-10 Christopher Faylor + + * fhandler_console.cc (create_invisible_console_workaround): Fix size + of cmd in the way originally intended. + 2009-08-10 Corinna Vinschen * fhandler_console.cc (create_invisible_console_workaround): Fix diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index bbb248b6a..53da269c4 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -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);