diff options
author | you <ovvv@web.de> | 2018-01-04 14:25:20 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-01-04 14:25:20 +0100 |
commit | e7b44c3295b904ee12ed4192ea4feff4ea4c6226 (patch) | |
tree | fe430064391151d4cfbed9798720be9f49a89fc0 | |
parent | 30821ad8deb42728fbba9de60dda31033f70aaac (diff) | |
download | minetest-e7b44c3295b904ee12ed4192ea4feff4ea4c6226.tar.gz minetest-e7b44c3295b904ee12ed4192ea4feff4ea4c6226.tar.bz2 minetest-e7b44c3295b904ee12ed4192ea4feff4ea4c6226.zip |
Fix Wstringop-overflow warning from util/srp.cpp (#6855)
* Fix Wstringop-overflow warning from util/srp.cpp
-rw-r--r-- | src/util/srp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/srp.cpp b/src/util/srp.cpp index 4c1a772e2..9aed9eb0c 100644 --- a/src/util/srp.cpp +++ b/src/util/srp.cpp @@ -39,6 +39,7 @@ #include <cstdlib> #include <cstring> #include <cstdio> +#include <cstdint> #include <config.h> @@ -418,7 +419,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; |