summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/MUCCHTMLBuilder.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2018-03-31 12:43:21 +0300
committerMataes <mataes2007@gmail.com>2018-03-31 12:43:21 +0300
commit44ac196462f6149c0d8355dfecebcef50a6ba2d8 (patch)
tree05c5e31a4b28888da59b9c84dbac55cff6d1d4b8 /plugins/IEView/src/MUCCHTMLBuilder.cpp
parent3a4438c3313a2c2778d5637f1dd22ca40219b1a3 (diff)
IEView: mir_strcpy and mir_wstrcpy replaced to strncpy_s and wcsncpy_s
Diffstat (limited to 'plugins/IEView/src/MUCCHTMLBuilder.cpp')
-rw-r--r--plugins/IEView/src/MUCCHTMLBuilder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/IEView/src/MUCCHTMLBuilder.cpp b/plugins/IEView/src/MUCCHTMLBuilder.cpp
index 38a3d64089..d42635dc8f 100644
--- a/plugins/IEView/src/MUCCHTMLBuilder.cpp
+++ b/plugins/IEView/src/MUCCHTMLBuilder.cpp
@@ -70,9 +70,9 @@ void MUCCHTMLBuilder::loadMsgDlgFont(int i, LOGFONTA * lf, COLORREF * colour)
lf->lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
mir_snprintf(str, "Font%dFace", i);
if (db_get(NULL, MUCCMOD, 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);
}
}