summaryrefslogtreecommitdiff
path: root/plugins/Quotes
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-10-03 17:23:08 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-10-03 17:23:08 +0000
commit533822b69a5f5f5983183e7270cde60ecd20ede1 (patch)
treec9b287c73d4d653b36b84128c771735337fc5dbd /plugins/Quotes
parent6729c6796e69318e983275649951a21af08583c3 (diff)
Quotes: coverity fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15501 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes')
-rw-r--r--plugins/Quotes/src/QuoteInfoDlg.cpp3
1 files changed, 1 insertions, 2 deletions
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);
}
}