diff options
author | Christopher Faylor <me@cgf.cx> | 2009-08-10 15:25:58 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-08-10 15:25:58 +0000 |
commit | 78d959ce6f7425580a4f1bdefef3bc4a8cfc29ff (patch) | |
tree | faa1730e8fa75912ca7e928e54e9e4e57770c6b7 | |
parent | d63db09bf80c933fd986eb97607d80eeee9a0cac (diff) | |
download | newlib-78d959ce6f7425580a4f1bdefef3bc4a8cfc29ff.zip newlib-78d959ce6f7425580a4f1bdefef3bc4a8cfc29ff.tar.gz newlib-78d959ce6f7425580a4f1bdefef3bc4a8cfc29ff.tar.bz2 |
* fhandler_console.cc (create_invisible_console_workaround): Fix size of cmd in
the way originally intended.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2d24356..8a2912a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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 diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index bbb248b..53da269 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); |