diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:25:24 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:25:24 +0000 |
commit | ec8dc5efedd7db322a011caedf680f19a942b708 (patch) | |
tree | 3ca3d153894aca80667dc424ca24a3ef7da14f83 /plugins | |
parent | 6a18d15077999d208154ee13c0fc052f39c43e1f (diff) |
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13638 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewEventNotify/src/popup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewEventNotify/src/popup.cpp b/plugins/NewEventNotify/src/popup.cpp index e6b9e894d9..d1ba1b60c2 100644 --- a/plugins/NewEventNotify/src/popup.cpp +++ b/plugins/NewEventNotify/src/popup.cpp @@ -575,7 +575,7 @@ int PopupUpdate(MCONTACT hContact, MEVENT hEvent) if (pdata->pluginOptions->bShowDate)
_tcsncpy(formatTime, _T("%Y.%m.%d"), SIZEOF(formatTime));
else if (pdata->pluginOptions->bShowTime)
- _tcsncat(formatTime, _T(" %H:%M"), SIZEOF(formatTime));
+ _tcsncat(formatTime, _T(" %H:%M"), SIZEOF(formatTime) - mir_tstrlen(formatTime));
time_t localTime = dbe.timestamp;
_tcsftime(timestamp, SIZEOF(timestamp), formatTime, localtime(&localTime));
mir_sntprintf(lpzText, SIZEOF(lpzText), _T("%s[b][i]%s[/i][/b]\n"), lpzText, timestamp);
|