summaryrefslogtreecommitdiff
path: root/plugins/RecentContacts/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/RecentContacts/src/options.cpp')
-rw-r--r--plugins/RecentContacts/src/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/RecentContacts/src/options.cpp b/plugins/RecentContacts/src/options.cpp
index e5c587613d..31462b55db 100644
--- a/plugins/RecentContacts/src/options.cpp
+++ b/plugins/RecentContacts/src/options.cpp
@@ -17,7 +17,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
mir_snprintf(str, SIZEOF(str), "%d", LastUCOpt.MaxShownContacts);
SetDlgItemTextA(hwndDlg, IDC_SHOWNCONTACTS, str);
- mir_snprintf(str, SIZEOF(str), "%s", LastUCOpt.DateTimeFormat.c_str());
+ strncpy_s(str, LastUCOpt.DateTimeFormat.c_str(), _TRUNCATE);
SetDlgItemTextA(hwndDlg, IDC_DATETIME, str);
SetWindowLongPtr(hwndDlg,GWLP_USERDATA,lParam);