diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-01 00:52:05 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-01 00:52:05 +0000 |
commit | 777da6a8fa210d027e5fd47919a8d7c18b9c5613 (patch) | |
tree | ecc0abfc5ed96b67afcd054400de02cdbda38bbe /plugins/Nudge/src | |
parent | faccf4803bd25abbb27402ab1127d085efd9061f (diff) |
fix buf size for mir_sntprintf()
git-svn-id: http://svn.miranda-ng.org/main/trunk@11186 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Nudge/src')
-rw-r--r-- | plugins/Nudge/src/main.cpp | 2 | ||||
-rw-r--r-- | plugins/Nudge/src/options.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index db503b162a..6d460bc5f2 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -515,7 +515,7 @@ void Nudge_AddAccount(PROTOACCOUNT *proto) newNudge->item.hEvent = hevent;
TCHAR soundDesc[MAXMODULELABELLENGTH + 10];
- mir_sntprintf(soundDesc, sizeof(soundDesc), LPGENT("Nudge for %s"), proto->tszAccountName);
+ mir_sntprintf(soundDesc, SIZEOF(soundDesc), LPGENT("Nudge for %s"), proto->tszAccountName);
SkinAddNewSoundExT(newNudge->item.NudgeSoundname, LPGENT("Nudge"), soundDesc);
newNudge->next = NudgeList;
diff --git a/plugins/Nudge/src/options.cpp b/plugins/Nudge/src/options.cpp index 63fc12ad3a..0b3d1f695f 100644 --- a/plugins/Nudge/src/options.cpp +++ b/plugins/Nudge/src/options.cpp @@ -128,7 +128,7 @@ static INT_PTR CALLBACK DlgProcShakeOpt(HWND hwnd,UINT msg,WPARAM wParam,LPARAM {
TCHAR szBuf[20];
DWORD dwPos = SendMessage((HWND)lParam, TBM_GETPOS, 0, 0);
- mir_sntprintf(szBuf, sizeof(szBuf), _T("%d"), dwPos);
+ mir_sntprintf(szBuf, SIZEOF(szBuf), _T("%d"), dwPos);
if ((HWND)lParam == GetDlgItem(hwnd, IDC_SNUMBER_CLIST))
SetDlgItemText(hwnd, IDC_LNUMBER_CLIST, szBuf);
if ((HWND)lParam == GetDlgItem(hwnd, IDC_SNUMBER_CHAT))
|