diff options
Diffstat (limited to 'protocols/Xfire/src/SHA1.cpp')
-rw-r--r-- | protocols/Xfire/src/SHA1.cpp | 8 |
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);
}
}
|