summaryrefslogtreecommitdiff
path: root/src/modules/fonts
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/fonts')
-rw-r--r--src/modules/fonts/FontOptions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/fonts/FontOptions.cpp b/src/modules/fonts/FontOptions.cpp
index 4d72a7d8bb..e90f2cac8f 100644
--- a/src/modules/fonts/FontOptions.cpp
+++ b/src/modules/fonts/FontOptions.cpp
@@ -326,7 +326,7 @@ static HTREEITEM sttFindNamedTreeItemAt(HWND hwndTree, HTREEITEM hItem, const TC
tvi.mask = TVIF_TEXT;
tvi.pszText = str;
- tvi.cchTextMax = MAX_PATH;
+ tvi.cchTextMax = SIZEOF(str);
while (tvi.hItem)
{