summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/sendlater.cpp
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-08 22:13:57 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-08 22:13:57 +0000
commit13eb83bea655c3302c74a82d826d75bceb9232a2 (patch)
treeea992cbd9002e078a06e9fe65a73698eec4fbc22 /plugins/TabSRMM/src/sendlater.cpp
parentef741fcb36d679b094e44d01714f423c34357383 (diff)
code cleanup around mir_snprintf
git-svn-id: http://svn.miranda-ng.org/main/trunk@11285 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/sendlater.cpp')
-rw-r--r--plugins/TabSRMM/src/sendlater.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/sendlater.cpp b/plugins/TabSRMM/src/sendlater.cpp
index fc800e8194..a9931f78a9 100644
--- a/plugins/TabSRMM/src/sendlater.cpp
+++ b/plugins/TabSRMM/src/sendlater.cpp
@@ -64,7 +64,7 @@ bool CSendLaterJob::mustDelete()
void CSendLaterJob::cleanDB()
{
if (isPersistentJob()) {
- char szKey[100];
+ char szKey[100];
db_unset(hContact, "SendLater", szId);
int iCount = db_get_dw(hContact, "SendLater", "count", 0);
@@ -73,7 +73,7 @@ void CSendLaterJob::cleanDB()
db_set_dw(hContact, "SendLater", "count", iCount);
// delete flags
- mir_snprintf(szKey, 100, "$%s", szId);
+ mir_snprintf(szKey, SIZEOF(szKey), "$%s", szId);
db_unset(hContact, "SendLater", szKey);
}
}
@@ -84,10 +84,10 @@ void CSendLaterJob::cleanDB()
void CSendLaterJob::readFlags()
{
if (isPersistentJob()) {
- char szKey[100];
- DWORD localFlags;
+ char szKey[100];
+ DWORD localFlags;
- mir_snprintf(szKey, 100, "$%s", szId);
+ mir_snprintf(szKey, SIZEOF(szKey), "$%s", szId);
localFlags = db_get_dw(hContact, "SendLater", szKey, 0);
if (localFlags & SLF_SUSPEND)
@@ -102,9 +102,9 @@ void CSendLaterJob::writeFlags()
{
if (isPersistentJob()) {
DWORD localFlags = (bCode == JOB_HOLD ? SLF_SUSPEND : 0);
- char szKey[100];
+ char szKey[100];
- mir_snprintf(szKey, 100, "$%s", szId);
+ mir_snprintf(szKey, SIZEOF(szKey), "$%s", szId);
db_set_dw(hContact, "SendLater", szKey, localFlags);
}
}