From: you Date: Thu, 4 Jan 2018 13:25:20 +0000 (+0100) Subject: Fix Wstringop-overflow warning from util/srp.cpp (#6855) X-Git-Tag: 0.4.17~39 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b2099d42776510a78940fd2a6ea87e2d63f77216;p=oweals%2Fminetest.git Fix Wstringop-overflow warning from util/srp.cpp (#6855) * Fix Wstringop-overflow warning from util/srp.cpp --- diff --git a/src/util/srp.cpp b/src/util/srp.cpp index 430ba1137..f27f4f3f9 100644 --- a/src/util/srp.cpp +++ b/src/util/srp.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include @@ -417,7 +418,7 @@ static SRP_Result H_nn( } static SRP_Result H_ns(mpz_t result, SRP_HashAlgorithm alg, const unsigned char *n, - size_t len_n, const unsigned char *bytes, size_t len_bytes) + size_t len_n, const unsigned char *bytes, uint32_t len_bytes) { unsigned char buff[SHA512_DIGEST_LENGTH]; size_t nbytes = len_n + len_bytes;