From a8a11e811c3c0cc3f6d74c18c89841e9e0e87237 Mon Sep 17 00:00:00 2001
From: Rozhuk Ivan <rozhuk.im@gmail.com>
Date: Sun, 30 Nov 2014 04:29:19 +0000
Subject: Multiple fixes buff size for GetText and SetText.

git-svn-id: http://svn.miranda-ng.org/main/trunk@11165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 plugins/ShellExt/src/options.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugins/ShellExt/src')

diff --git a/plugins/ShellExt/src/options.cpp b/plugins/ShellExt/src/options.cpp
index e337117171..b8088416c3 100644
--- a/plugins/ShellExt/src/options.cpp
+++ b/plugins/ShellExt/src/options.cpp
@@ -8,7 +8,7 @@ static void AutoSize(HWND hwnd)
   HFONT hOldFont = (HFONT)SelectObject(hDC, hFont);
 
   TCHAR szBuf[MAX_PATH];
-  int i = GetWindowText(hwnd, szBuf, MAX_PATH);
+  int i = GetWindowText(hwnd, szBuf, SIZEOF(szBuf));
 
   SIZE tS;
   GetTextExtentPoint32(hDC, szBuf, i, &tS);
-- 
cgit v1.2.3