summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/clientloginpacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/clientloginpacket.cpp')
-rw-r--r--protocols/Xfire/src/clientloginpacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Xfire/src/clientloginpacket.cpp b/protocols/Xfire/src/clientloginpacket.cpp
index 30a28cc7eb..1746b9fdf8 100644
--- a/protocols/Xfire/src/clientloginpacket.cpp
+++ b/protocols/Xfire/src/clientloginpacket.cpp
@@ -111,7 +111,7 @@ void ClientLoginPacket::hashSha1(const char *string, unsigned char *sha){
result[0] = 0;
char szTemp[16];
for(int i = 0 ; i < 20 ; i++) {
- sprintf(szTemp, "%02x", temp[i]);
+ mir_snprintf(szTemp, SIZEOF(szTemp), "%02x", temp[i]);
strcat(result,szTemp);
}
memcpy(sha,result,40);