diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-28 16:22:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-28 16:22:41 +0000 |
commit | c370af60855db957c5b200914bf0bde743845528 (patch) | |
tree | 0bd2ef127097c9e937c2650e8b202c3f09453323 /protocols/JabberG/src/jabber_iqid.cpp | |
parent | 7f082bd5d4865c30b313661b7a02f048b4b137be (diff) |
mir_sntprintf / mir_snprintf: obsoleted second parameter removed wherever possible
git-svn-id: http://svn.miranda-ng.org/main/trunk@15064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_iqid.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_iqid.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp index 5c55583396..475e14a7f3 100644 --- a/protocols/JabberG/src/jabber_iqid.cpp +++ b/protocols/JabberG/src/jabber_iqid.cpp @@ -219,7 +219,7 @@ void CJabberProto::OnIqResultGetAuth(HXML iqNode, CJabberIqInfo*) JabberShaStrBuf buf;
T2Utf str(m_ThreadInfo->conn.password);
char text[200];
- mir_snprintf(text, _countof(text), "%s%s", m_ThreadInfo->szStreamId, str);
+ mir_snprintf(text, "%s%s", m_ThreadInfo->szStreamId, str);
query << XCHILD(_T("digest"), _A2T(JabberSha1(text, buf)));
}
else if (XmlGetChild(queryNode, "password") != NULL)
@@ -751,13 +751,13 @@ void CJabberProto::OnIqResultGetVcard(HXML iqNode, CJabberIqInfo*) if (nEmail == 0)
mir_strcpy(text, "e-mail");
else
- mir_snprintf(text, _countof(text), "e-mail%d", nEmail - 1);
+ mir_snprintf(text, "e-mail%d", nEmail - 1);
}
- else mir_snprintf(text, _countof(text), "e-mail%d", nEmail);
+ else mir_snprintf(text, "e-mail%d", nEmail);
setTString(hContact, text, XmlGetText(m));
if (hContact == NULL) {
- mir_snprintf(text, _countof(text), "e-mailFlag%d", nEmail);
+ mir_snprintf(text, "e-mailFlag%d", nEmail);
int nFlag = 0;
if (XmlGetChild(n, "HOME") != NULL) nFlag |= JABBER_VCEMAIL_HOME;
if (XmlGetChild(n, "WORK") != NULL) nFlag |= JABBER_VCEMAIL_WORK;
@@ -925,10 +925,10 @@ void CJabberProto::OnIqResultGetVcard(HXML iqNode, CJabberIqInfo*) }
else {
char text[100];
- mir_snprintf(text, _countof(text), "Phone%d", nPhone);
+ mir_snprintf(text, "Phone%d", nPhone);
setTString(text, XmlGetText(m));
- mir_snprintf(text, _countof(text), "PhoneFlag%d", nPhone);
+ mir_snprintf(text, "PhoneFlag%d", nPhone);
int nFlag = 0;
if (XmlGetChild(n, "HOME") != NULL) nFlag |= JABBER_VCTEL_HOME;
if (XmlGetChild(n, "WORK") != NULL) nFlag |= JABBER_VCTEL_WORK;
@@ -1013,7 +1013,7 @@ void CJabberProto::OnIqResultGetVcard(HXML iqNode, CJabberIqInfo*) delSetting(hContact, "e-mail");
else {
char text[100];
- mir_snprintf(text, _countof(text), "e-mail%d", nEmail - 1);
+ mir_snprintf(text, "e-mail%d", nEmail - 1);
if (db_get_s(hContact, m_szModuleName, text, &dbv)) break;
db_free(&dbv);
delSetting(hContact, text);
@@ -1024,11 +1024,11 @@ void CJabberProto::OnIqResultGetVcard(HXML iqNode, CJabberIqInfo*) else {
while (true) {
char text[100];
- mir_snprintf(text, _countof(text), "e-mail%d", nEmail);
+ mir_snprintf(text, "e-mail%d", nEmail);
if (getString(text, &dbv)) break;
db_free(&dbv);
delSetting(text);
- mir_snprintf(text, _countof(text), "e-mailFlag%d", nEmail);
+ mir_snprintf(text, "e-mailFlag%d", nEmail);
delSetting(text);
nEmail++;
}
@@ -1058,11 +1058,11 @@ void CJabberProto::OnIqResultGetVcard(HXML iqNode, CJabberIqInfo*) else {
while (true) {
char text[100];
- mir_snprintf(text, _countof(text), "Phone%d", nPhone);
+ mir_snprintf(text, "Phone%d", nPhone);
if (getString(text, &dbv)) break;
db_free(&dbv);
delSetting(text);
- mir_snprintf(text, _countof(text), "PhoneFlag%d", nPhone);
+ mir_snprintf(text, "PhoneFlag%d", nPhone);
delSetting(text);
nPhone++;
}
|