From 35ddb514ab7dbd6a753e52067ed089432f05459c Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Wed, 11 Jul 2012 23:43:51 +0200 Subject: Fix restoration via taskbar icon --- src/common/xchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xchat.c b/src/common/xchat.c index 0849e234..11a65c17 100644 --- a/src/common/xchat.c +++ b/src/common/xchat.c @@ -923,7 +923,7 @@ enum_windows_impl (HWND current_window, LPARAM lParam) return TRUE; } - GetWindowText (current_window, window_name, 10); + GetWindowText (current_window, window_name, 8); /* name length + 1 */ if (stricmp (window_name, "hexchat") == 0) { /* use a separate if block, this way we don't have to call GetWindowModuleFileName() for each hit */ -- cgit 1.4.1