From fc7b721e12b6a07cb2b6566c196b9a6c4265c2af Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Thu, 16 Apr 2020 12:38:01 +0200 Subject: fix embarrassing bug in ALF_Text --- alf/alf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alf/alf.cpp') diff --git a/alf/alf.cpp b/alf/alf.cpp index ad4295d..77fe344 100644 --- a/alf/alf.cpp +++ b/alf/alf.cpp @@ -671,7 +671,7 @@ ALF_Text(HWND hwnd) int len = GetWindowTextLength(hwnd); if (len > 0) { TCHAR *buf = ALF_New(TCHAR, len+1); - if (GetWindowText(hwnd, buf, len)) { + if (GetWindowText(hwnd, buf, len+1)) { return buf; } else { ALF_Free(buf); -- cgit v1.2.3