From 533822b69a5f5f5983183e7270cde60ecd20ede1 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 3 Oct 2015 17:23:08 +0000 Subject: Quotes: coverity fix git-svn-id: http://svn.miranda-ng.org/main/trunk@15501 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Quotes/src/QuoteInfoDlg.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Quotes/src') diff --git a/plugins/Quotes/src/QuoteInfoDlg.cpp b/plugins/Quotes/src/QuoteInfoDlg.cpp index 8a6c551310..e72c2043c2 100644 --- a/plugins/Quotes/src/QuoteInfoDlg.cpp +++ b/plugins/Quotes/src/QuoteInfoDlg.cpp @@ -64,10 +64,9 @@ INT_PTR CALLBACK QuoteInfoDlgProcImpl(MCONTACT hContact, HWND hdlg, UINT msg, WP time_t nFetchTime; if (true == get_fetch_time(nFetchTime, hContact)) { - TCHAR szTime[50]; + TCHAR szTime[50] = { 0 }; if (0 == _tctime_s(szTime, 50, &nFetchTime)) { - szTime[::mir_tstrlen(szTime) - 1] = _T('\0'); ::SetDlgItemText(hdlg, IDC_EDIT_RATE_FETCH_TIME, szTime); } } -- cgit v1.2.3