diff options
author | Mataes <mataes2007@gmail.com> | 2018-03-31 12:43:21 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2018-03-31 12:43:21 +0300 |
commit | 44ac196462f6149c0d8355dfecebcef50a6ba2d8 (patch) | |
tree | 05c5e31a4b28888da59b9c84dbac55cff6d1d4b8 /plugins/IEView/src/ScriverHTMLBuilder.cpp | |
parent | 3a4438c3313a2c2778d5637f1dd22ca40219b1a3 (diff) |
IEView: mir_strcpy and mir_wstrcpy replaced to strncpy_s and wcsncpy_s
Diffstat (limited to 'plugins/IEView/src/ScriverHTMLBuilder.cpp')
-rw-r--r-- | plugins/IEView/src/ScriverHTMLBuilder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/IEView/src/ScriverHTMLBuilder.cpp b/plugins/IEView/src/ScriverHTMLBuilder.cpp index b7538c2cc4..c86c1bce5d 100644 --- a/plugins/IEView/src/ScriverHTMLBuilder.cpp +++ b/plugins/IEView/src/ScriverHTMLBuilder.cpp @@ -112,9 +112,9 @@ void ScriverHTMLBuilder::loadMsgDlgFont(int i, LOGFONTA * lf, COLORREF * colour) lf->lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
mir_snprintf(str, "SRMFont%d", i);
if (db_get(NULL, SRMMMOD, 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);
}
}
@@ -149,9 +149,9 @@ char* ScriverHTMLBuilder::timestampToString(DWORD dwFlags, time_t check, int mod }
else {
if (dwFlags & SMF_LOG_USELONGDATE)
- mir_strcpy(format, "D");
+ strncpy_s(format, "D", _TRUNCATE);
else
- mir_strcpy(format, "d");
+ strncpy_s(format, "d", _TRUNCATE);
}
}
if (mode == 0 || mode == 2) {
|