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:
parent
bf38bd5a1d
commit
babcbcbcea
@ -233,7 +233,7 @@ namespace data
|
|||||||
|
|
||||||
size_t IdentityEx::ToBuffer (uint8_t * buf, size_t len) const
|
size_t IdentityEx::ToBuffer (uint8_t * buf, size_t len) const
|
||||||
{
|
{
|
||||||
size_t fullLen = GetFullLen();
|
const size_t fullLen = GetFullLen();
|
||||||
if (fullLen > len) {
|
if (fullLen > len) {
|
||||||
// buffer is too small and may overflow somewhere else
|
// buffer is too small and may overflow somewhere else
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user