From 0225e25a20995f5b091c31ea1ea91306bfc8e23c Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 14 May 2015 19:07:52 +0000 Subject: cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@13595 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/bitmap_funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Popup/src/bitmap_funcs.cpp') diff --git a/plugins/Popup/src/bitmap_funcs.cpp b/plugins/Popup/src/bitmap_funcs.cpp index 6636ff0546..8feeb7985f 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]; - _tcsncpy_s(ext, fn + (_tcslen(fn) - 4), _TRUNCATE); + mir_tstrncpy(ext, fn + (mir_tstrlen(fn) - 4), _TRUNCATE); if (!mir_tstrcmpi(ext, _T(".png"))) return loadFromFile_png(fn); -- cgit v1.2.3