Navigation Menu

Skip to content

Commit

Permalink
Fix Wstringop-overflow warning from util/srp.cpp (#6855)
Browse files Browse the repository at this point in the history
* Fix Wstringop-overflow warning from util/srp.cpp
  • Loading branch information
HybridDog authored and nerzhul committed Jan 4, 2018
1 parent 30821ad commit e7b44c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/srp.cpp
Expand Up @@ -39,6 +39,7 @@
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <cstdint>

#include <config.h>

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e7b44c3

Please sign in to comment.