From 44ac196462f6149c0d8355dfecebcef50a6ba2d8 Mon Sep 17 00:00:00 2001 From: Mataes Date: Sat, 31 Mar 2018 12:43:21 +0300 Subject: IEView: mir_strcpy and mir_wstrcpy replaced to strncpy_s and wcsncpy_s --- plugins/IEView/src/ChatHTMLBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/IEView/src/ChatHTMLBuilder.cpp') diff --git a/plugins/IEView/src/ChatHTMLBuilder.cpp b/plugins/IEView/src/ChatHTMLBuilder.cpp index d3f5cf2847..22e77eef4e 100644 --- a/plugins/IEView/src/ChatHTMLBuilder.cpp +++ b/plugins/IEView/src/ChatHTMLBuilder.cpp @@ -74,9 +74,9 @@ void ChatHTMLBuilder::loadMsgDlgFont(int i, LOGFONTA * lf, COLORREF * colour) lf->lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE; mir_snprintf(str, "Font%d", i); if (db_get(NULL, CHATFONTMOD, str, &dbv)) - mir_strcpy(lf->lfFaceName, "Verdana"); + strncpy_s(lf->lfFaceName, "Verdana", _TRUNCATE); else { - mir_strncpy(lf->lfFaceName, dbv.pszVal, sizeof(lf->lfFaceName)); + strncpy_s(lf->lfFaceName, dbv.pszVal, _TRUNCATE); db_free(&dbv); } } -- cgit v1.2.3