summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/dbcontacts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-03-02 08:37:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-03-02 08:37:52 +0000
commit86afe40c9f5e7c97de33e6bda58038ca764e74e4 (patch)
treeab817e2dc074eccd85a514652153f719840d07c6 /plugins/Dbx_mdb/src/dbcontacts.cpp
parent557077718ec034e47e11556b99ce86424e6550a2 (diff)
- 64-bit issues fixed;
- warning fixes; git-svn-id: http://svn.miranda-ng.org/main/trunk@16386 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbcontacts.cpp')
-rw-r--r--plugins/Dbx_mdb/src/dbcontacts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Dbx_mdb/src/dbcontacts.cpp b/plugins/Dbx_mdb/src/dbcontacts.cpp
index 9b4775990c..55b34aef5c 100644
--- a/plugins/Dbx_mdb/src/dbcontacts.cpp
+++ b/plugins/Dbx_mdb/src/dbcontacts.cpp
@@ -348,10 +348,10 @@ void CDbxMdb::FillContacts()
cc->nSubs = (0 != GetContactSetting(cc->contactID, META_PROTO, "NumContacts", &dbv)) ? -1 : dbv.dVal;
if (cc->nSubs != -1) {
cc->pSubs = (MCONTACT*)mir_alloc(cc->nSubs*sizeof(MCONTACT));
- for (int i = 0; i < cc->nSubs; i++) {
+ for (int k = 0; k < cc->nSubs; k++) {
char setting[100];
- mir_snprintf(setting, _countof(setting), "Handle%d", i);
- cc->pSubs[i] = (0 != GetContactSetting(cc->contactID, META_PROTO, setting, &dbv)) ? NULL : dbv.dVal;
+ mir_snprintf(setting, _countof(setting), "Handle%d", k);
+ cc->pSubs[k] = (0 != GetContactSetting(cc->contactID, META_PROTO, setting, &dbv)) ? NULL : dbv.dVal;
}
}
cc->nDefault = (0 != GetContactSetting(cc->contactID, META_PROTO, "Default", &dbv)) ? -1 : dbv.dVal;