summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/SHA1.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-16 10:57:40 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-16 10:57:40 +0000
commit30ee89a6764a8d38a078374c6ed5de70635b42c0 (patch)
tree464bbd4c8e32200107d42c5f95b13134edf42888 /protocols/Xfire/src/SHA1.cpp
parente3c401f192327347151a70596a6b0b493bc762b1 (diff)
rest or mir_*printf in protocols
git-svn-id: http://svn.miranda-ng.org/main/trunk@5715 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 f296b563cd..cd0fe75149 100644
--- a/protocols/Xfire/src/SHA1.cpp
+++ b/protocols/Xfire/src/SHA1.cpp
@@ -232,23 +232,23 @@ void CSHA1::ReportHash(char *szReport, unsigned char uReportType)
if(uReportType == REPORT_HEX)
{
- sprintf(szTemp, "%02X", m_digest[0]);
+ mir_snprintf(szTemp, SIZEOF(szTemp), "%02X", m_digest[0]);
strcat(szReport, szTemp);
for(i = 1; i < 20; i++)
{
- sprintf(szTemp, " %02X", m_digest[i]);
+ mir_snprintf(szTemp, SIZEOF(szTemp), " %02X", m_digest[i]);
strcat(szReport, szTemp);
}
}
else if(uReportType == REPORT_DIGIT)
{
- sprintf(szTemp, "%u", m_digest[0]);
+ mir_snprintf(szTemp, SIZEOF(szTemp), "%u", m_digest[0]);
strcat(szReport, szTemp);
for(i = 1; i < 20; i++)
{
- sprintf(szTemp, " %u", m_digest[i]);
+ mir_snprintf(szTemp, SIZEOF(szTemp), " %u", m_digest[i]);
strcat(szReport, szTemp);
}
}