From 86f1bf9fe74b0f9ede4b2355d6ef192d5651de08 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 25 Jun 2021 12:11:33 -0400 Subject: [PATCH] fixed #74 --- i2pd | 2 +- x25519.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/i2pd b/i2pd index f22eaa6..3c07665 160000 --- a/i2pd +++ b/i2pd @@ -1 +1 @@ -Subproject commit f22eaa6db51e36d0a064c56907589164752035c5 +Subproject commit 3c076654794c619eed228adcac075e9c1dea732f diff --git a/x25519.cpp b/x25519.cpp index faf2ad3..4a93b1e 100644 --- a/x25519.cpp +++ b/x25519.cpp @@ -38,7 +38,7 @@ int main(int argc, char * argv[]) { if (argc > 1) { - std::string arg = static_cast(argv[1]); + std::string arg (argv[1]); if (arg == "--usage" || arg == "--help" || arg == "-h") { std::cout << "The x25519 keys are used for authentication with an encrypted LeaseSet.\n" @@ -57,7 +57,7 @@ int main(int argc, char * argv[]) BoxKeys newKeys = getKeyPair(); - size_t len_out = 50; + const size_t len_out = 50; char b64Public[len_out] = {0}; char b64Private[len_out] = {0};