summaryrefslogtreecommitdiff
path: root/plugins/Console/src
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-02-14 00:12:19 +0100
committerRobert Pösel <robyer@seznam.cz>2017-02-14 00:12:19 +0100
commitb1abcb23603ca03985b19551c21b7e173c996ac6 (patch)
tree23779e297360bca7759f460d987315178e735c4b /plugins/Console/src
parenta727a5f4cb61f721cef5a6afa6c2054a06659fea (diff)
Console: Fix size of copy/save text buffer (fixes #713)
Diffstat (limited to 'plugins/Console/src')
-rw-r--r--plugins/Console/src/Console.cpp4
-rw-r--r--plugins/Console/src/version.h16
2 files changed, 10 insertions, 10 deletions
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;
diff --git a/plugins/Console/src/version.h b/plugins/Console/src/version.h
index 75957b12e8..64f6fdc4f8 100644
--- a/plugins/Console/src/version.h
+++ b/plugins/Console/src/version.h
@@ -1,14 +1,14 @@
-#define __MAJOR_VERSION 0
-#define __MINOR_VERSION 0
-#define __RELEASE_NUM 7
-#define __BUILD_NUM 3
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 7
+#define __BUILD_NUM 4
#include <stdver.h>
-#define __PLUGIN_NAME "Console"
-#define __FILENAME "Console.dll"
+#define __PLUGIN_NAME "Console"
+#define __FILENAME "Console.dll"
#define __DESCRIPTION "Console log window for Miranda."
-#define __AUTHOR "Bio"
-#define __AUTHOREMAIL "bio@ktaspb.ru"
+#define __AUTHOR "Bio"
+#define __AUTHOREMAIL "bio@ktaspb.ru"
#define __AUTHORWEB "http://miranda-ng.org/p/Console/"
#define __COPYRIGHT "© 2005-2012 Bio"