From b1abcb23603ca03985b19551c21b7e173c996ac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 14 Feb 2017 00:12:19 +0100 Subject: Console: Fix size of copy/save text buffer (fixes #713) --- plugins/Console/src/Console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Console/src/Console.cpp') diff --git a/plugins/Console/src/Console.cpp b/plugins/Console/src/Console.cpp index dec5f24afb..b9925b4166 100644 --- a/plugins/Console/src/Console.cpp +++ b/plugins/Console/src/Console.cpp @@ -477,7 +477,7 @@ static INT_PTR CALLBACK LogDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LP case IDC_COPY: { int idx = 0; - wchar_t szText[128]; + wchar_t szText[MAX_WRAPLEN + 1]; wchar_t *src, *dst, *buf; int flags = LVNI_BELOW; int count = ListView_GetSelectedCount(dat->hList); @@ -548,7 +548,7 @@ static INT_PTR CALLBACK LogDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LP FILE *fp = _wfopen(szFile, L"wt"); if (fp) { int idx = 0; - wchar_t szText[128]; + wchar_t szText[MAX_WRAPLEN + 1]; int flags = LVNI_BELOW; if (ListView_GetSelectedCount(dat->hList)) flags |= LVNI_SELECTED; -- cgit v1.2.3