Fix Wstringop-overflow warning from util/srp.cpp (#6855)

* Fix Wstringop-overflow warning from util/srp.cpp
This commit is contained in:
you 2018-01-04 14:25:20 +01:00 committed by sfan5
parent a962d0df34
commit dfe45cdee3
1 changed files with 2 additions and 1 deletions

View File

@ -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;