summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 */