use const size_t instead of size_t

pull/366/head
Jeff Becker 9 years ago
parent bf38bd5a1d
commit babcbcbcea
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

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

Loading…
Cancel
Save