Fix calculation of SSL fingerprints

This commit is contained in:
Alexey Sokolov
2014-12-14 09:58:00 +00:00
parent 571a53edb1
commit 60ec923d1f
2 changed files with 9 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ CString CZNCSock::GetSSLPeerFingerprint() const {
}
CString sResult;
sResult.reserve(3*256/8);
for (char c : buf) {
for (unsigned char c : buf) {
char b[3];
snprintf(b, 3, "%02x", c);
sResult += b;