mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 12:24:19 +00:00
correct string size for mapping
This commit is contained in:
parent
2e1e95d483
commit
44556b7f5e
4
I2CP.cpp
4
I2CP.cpp
@ -277,7 +277,7 @@ namespace client
|
|||||||
while (offset < len)
|
while (offset < len)
|
||||||
{
|
{
|
||||||
std::string param = ExtractString (buf + offset, len - offset);
|
std::string param = ExtractString (buf + offset, len - offset);
|
||||||
offset += param.length ();
|
offset += param.length () + 1;
|
||||||
if (buf[offset] != '=')
|
if (buf[offset] != '=')
|
||||||
{
|
{
|
||||||
LogPrint (eLogWarning, "I2CP: Unexpected character ", buf[offset], " instead '=' after ", param);
|
LogPrint (eLogWarning, "I2CP: Unexpected character ", buf[offset], " instead '=' after ", param);
|
||||||
@ -286,7 +286,7 @@ namespace client
|
|||||||
offset++;
|
offset++;
|
||||||
|
|
||||||
std::string value = ExtractString (buf + offset, len - offset);
|
std::string value = ExtractString (buf + offset, len - offset);
|
||||||
offset += value.length ();
|
offset += value.length () + 1;
|
||||||
if (buf[offset] != ';')
|
if (buf[offset] != ';')
|
||||||
{
|
{
|
||||||
LogPrint (eLogWarning, "I2CP: Unexpected character ", buf[offset], " instead ';' after ", value);
|
LogPrint (eLogWarning, "I2CP: Unexpected character ", buf[offset], " instead ';' after ", value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user