mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
use const size_t instead of size_t
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user