1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 04:04:16 +00:00

use const size_t instead of size_t

This commit is contained in:
Jeff Becker 2016-02-05 12:32:50 -05:00
parent bf38bd5a1d
commit babcbcbcea
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -233,7 +233,7 @@ namespace data
size_t IdentityEx::ToBuffer (uint8_t * buf, size_t len) const
{
size_t fullLen = GetFullLen();
const size_t fullLen = GetFullLen();
if (fullLen > len) {
// buffer is too small and may overflow somewhere else
return 0;