diff options
author | you <ovvv@web.de> | 2018-01-04 14:25:20 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:32:00 +0200 |
commit | b2099d42776510a78940fd2a6ea87e2d63f77216 (patch) | |
tree | d2172e53c001302de7404d25688a993e13e4219b /src/util | |
parent | df0a8574dcef24e5a12a366cb10f7ac5d69a8b79 (diff) | |
download | minetest-b2099d42776510a78940fd2a6ea87e2d63f77216.tar.gz minetest-b2099d42776510a78940fd2a6ea87e2d63f77216.tar.bz2 minetest-b2099d42776510a78940fd2a6ea87e2d63f77216.zip |
Fix Wstringop-overflow warning from util/srp.cpp (#6855)
* Fix Wstringop-overflow warning from util/srp.cpp
Diffstat (limited to 'src/util')
-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 430ba1137..f27f4f3f9 100644 --- a/src/util/srp.cpp +++ b/src/util/srp.cpp @@ -38,6 +38,7 @@ #include <stdlib.h> #include <string.h> #include <stdio.h> +#include <stdint.h> #include <config.h> @@ -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; |