summaryrefslogtreecommitdiff
path: root/alf
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-16 12:38:01 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-16 12:38:01 +0200
commitfc7b721e12b6a07cb2b6566c196b9a6c4265c2af (patch)
tree58a6f0b35a4b61b06657de04700907d5c728b83b /alf
parentd56bd75ee5bc28daddb429b1fb850854970bc5f5 (diff)
fix embarrassing bug in ALF_Text
Diffstat (limited to 'alf')
-rw-r--r--alf/alf.cpp2
1 files changed, 1 insertions, 1 deletions
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);