Refactor/Improve String and Path Handling

This commit is contained in:
LRFLEW committed 2016-10-09 15:29:58 -05:00
1 parent 211a0d7863
commit e5ff7412e4
94 files changed
+1038 -989

No files matched your search

+1 -1
View File
@@ -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;