use string/string_view for base64

This commit is contained in:
orignal committed 2025-03-17 09:06:11 -04:00
1 parent e0a21cf702
commit 93cc810f29
9 files changed
+142 -120

No files matched your search

+1 -3
View File
@@ -951,9 +951,7 @@ namespace data
LogPrint (eLogError, "NetDb: DatabaseLookup for zero ident. Ignored");
return;
}
char key[48];
int l = i2p::data::ByteStreamToBase64 (buf, 32, key, 48);
key[l] = 0;
auto key = i2p::data::ByteStreamToBase64 (buf, 32);
IdentHash replyIdent(buf + 32);
uint8_t flag = buf[64];