summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-11 23:43:51 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-11 23:43:51 +0200
commit35ddb514ab7dbd6a753e52067ed089432f05459c (patch)
tree8cc0cc23817858bc4bf066f82d02bae59988cb70 /src
parentc745e4ea79b9273a930e44d267752da75414810f (diff)
Fix restoration via taskbar icon
Diffstat (limited to 'src')
-rw-r--r--src/common/xchat.c2
1 files changed, 1 insertions, 1 deletions
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 */