summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/splitmsg.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-31 19:09:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-31 19:09:56 +0000
commit33ed395de0eb385315d949c77b4e1289a6684112 (patch)
tree6698849d0a9396582130b7b2758565566b72f694 /plugins/SecureIM/src/splitmsg.cpp
parentcecb2a6e6e221b6cb94e48ef601d12bfde7f60f4 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4267 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/splitmsg.cpp')
-rw-r--r--plugins/SecureIM/src/splitmsg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SecureIM/src/splitmsg.cpp b/plugins/SecureIM/src/splitmsg.cpp
index 4cf6e5f91d..74583df741 100644
--- a/plugins/SecureIM/src/splitmsg.cpp
+++ b/plugins/SecureIM/src/splitmsg.cpp
@@ -11,11 +11,11 @@ LPSTR splitMsg(LPSTR szMsg, int iLen) {
LPSTR out = (LPSTR) mir_alloc(len*2);
LPSTR buf = out;
- WORD msg_id = DBGetContactSettingWord(0, MODULENAME, "msgid", 0) + 1;
+ WORD msg_id = db_get_w(0, MODULENAME, "msgid", 0) + 1;
DBWriteContactSettingWord(0, MODULENAME, "msgid", msg_id);
int part_all = (len+iLen-1)/iLen;
- for(int part_num=0; part_num<part_all; part_num++) {
+ for (int part_num=0; part_num<part_all; part_num++) {
int sz = (len>iLen)?iLen:len;
mir_snprintf(buf,32,"%s%04X%02X%02X",SIG_SECP,msg_id,part_num,part_all);
memcpy(buf+LEN_SECP+8,szMsg,sz);