summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/SHA1.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
commitb7c74cd5b22618d544a3f4ae124985d4837e3a22 (patch)
tree468d9610a590685322ad2159a9bd2d9e2ba83f89 /protocols/Xfire/src/SHA1.cpp
parent7de513f180c429859e246d1033d745b394e1fc28 (diff)
new mir_snprintf templates without SIZEOF
git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/SHA1.cpp')
-rw-r--r--protocols/Xfire/src/SHA1.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Xfire/src/SHA1.cpp b/protocols/Xfire/src/SHA1.cpp
index 49ac7ab1aa..a310dc5dd6 100644
--- a/protocols/Xfire/src/SHA1.cpp
+++ b/protocols/Xfire/src/SHA1.cpp
@@ -229,23 +229,23 @@ void CSHA1::ReportHash(char *szReport, unsigned char uReportType)
if (uReportType == REPORT_HEX)
{
- mir_snprintf(szTemp, SIZEOF(szTemp), "%02X", m_digest[0]);
+ mir_snprintf(szTemp, "%02X", m_digest[0]);
mir_strcat(szReport, szTemp);
for(i = 1; i < 20; i++)
{
- mir_snprintf(szTemp, SIZEOF(szTemp), " %02X", m_digest[i]);
+ mir_snprintf(szTemp, " %02X", m_digest[i]);
mir_strcat(szReport, szTemp);
}
}
else if (uReportType == REPORT_DIGIT)
{
- mir_snprintf(szTemp, SIZEOF(szTemp), "%u", m_digest[0]);
+ mir_snprintf(szTemp, "%u", m_digest[0]);
mir_strcat(szReport, szTemp);
for(i = 1; i < 20; i++)
{
- mir_snprintf(szTemp, SIZEOF(szTemp), " %u", m_digest[i]);
+ mir_snprintf(szTemp, " %u", m_digest[i]);
mir_strcat(szReport, szTemp);
}
}