From 114f83d5d8a73b3f1435e09b1d91aff843e4ce15 Mon Sep 17 00:00:00 2001
From: Rozhuk Ivan <rozhuk.im@gmail.com>
Date: Tue, 2 Dec 2014 05:19:23 +0000
Subject: mir_snprintf(..., "%s", ...) -> strncpy_s(...) build fix to prevous
 commit

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

(limited to 'plugins/FileAsMessage')

diff --git a/plugins/FileAsMessage/src/dialog.cpp b/plugins/FileAsMessage/src/dialog.cpp
index 21aa2775ba..9cc63c3929 100644
--- a/plugins/FileAsMessage/src/dialog.cpp
+++ b/plugins/FileAsMessage/src/dialog.cpp
@@ -1191,7 +1191,7 @@ INT_PTR CALLBACK DialogProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
 					if(size != -1)
 						mir_snprintf(str, SIZEOF(str), Translate("Size: %d bytes"), size);
 					else
-						mir_snprintf(str, SIZEOF(str), "%s", Translate("Can't get a file size"));
+						strncpy_s(str, Translate("Can't get a file size"), _TRUNCATE);
 					SetDlgItemText(hDlg, IDC_FILESIZE, str);					
 
 					break;
-- 
cgit v1.2.3