summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/HistoryHTMLBuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/IEView/src/HistoryHTMLBuilder.cpp')
-rw-r--r--plugins/IEView/src/HistoryHTMLBuilder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/IEView/src/HistoryHTMLBuilder.cpp b/plugins/IEView/src/HistoryHTMLBuilder.cpp
index abbc3f3065..ce1c3c65ef 100644
--- a/plugins/IEView/src/HistoryHTMLBuilder.cpp
+++ b/plugins/IEView/src/HistoryHTMLBuilder.cpp
@@ -124,9 +124,9 @@ void HistoryHTMLBuilder::loadMsgDlgFont(const char *dbSetting, LOGFONTA * lf, CO
lf->lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
mir_snprintf(str, "Font.%s.Name", dbSetting);
if (db_get(NULL, HPPMOD, 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);
}
}