summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-18 20:35:00 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-18 20:35:00 +0000
commit60a1b377acc52ab0a8292a7ec46e9b17b4371b3a (patch)
tree07692eaaf8d74d8bda4e0d2247d9ec0d1e36ed3f /plugins
parentf3ec06759c21604436567693984ea31c5b1d5e3f (diff)
overrun fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@13688 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Popup/src/bitmap_funcs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Popup/src/bitmap_funcs.cpp b/plugins/Popup/src/bitmap_funcs.cpp
index 8feeb7985f..52e341dff5 100644
--- a/plugins/Popup/src/bitmap_funcs.cpp
+++ b/plugins/Popup/src/bitmap_funcs.cpp
@@ -832,7 +832,7 @@ bool MyBitmap::loadFromFile(const TCHAR *fn, const TCHAR *fnAlpha)
return loadFromFile_gradient(fn);
TCHAR ext[5];
- mir_tstrncpy(ext, fn + (mir_tstrlen(fn) - 4), _TRUNCATE);
+ mir_tstrncpy(ext, fn + (mir_tstrlen(fn) - 4), SIZEOF(ext));
if (!mir_tstrcmpi(ext, _T(".png")))
return loadFromFile_png(fn);