forked from rosebudai/OpenRCT2-Web
Refactor/Improve String and Path Handling
This commit is contained in:
1 parent
211a0d7863
commit
e5ff7412e4
94 files changed
+1038
-989
No files matched your search
@@ -337,7 +337,7 @@ std::string NetworkKey::PublicKeyHash()
|
||||
for (unsigned int i = 0; i < digest_size; i++)
|
||||
{
|
||||
char buf[3];
|
||||
sprintf(buf, "%02x", digest[i]);
|
||||
snprintf(buf, 3, "%02x", digest[i]);
|
||||
digest_out.append(buf);
|
||||
}
|
||||
return digest_out;
|
||||
|
||||
Reference in new issue
Block a user