Browse Source

Merge pull request #170 from guanqun/fix-wrong-buffer-size

setup the correct buffer size
pull/173/head
orignal 10 years ago
parent
commit
6ec5858561
  1. 2
      AddressBook.cpp

2
AddressBook.cpp

@ -465,7 +465,7 @@ namespace client
auto stream = i2p::client::context.GetSharedLocalDestination ()->CreateStream (leaseSet, u.port_); auto stream = i2p::client::context.GetSharedLocalDestination ()->CreateStream (leaseSet, u.port_);
stream->Send ((uint8_t *)request.str ().c_str (), request.str ().length ()); stream->Send ((uint8_t *)request.str ().c_str (), request.str ().length ());
uint8_t buf[4095]; uint8_t buf[4096];
bool end = false; bool end = false;
while (!end) while (!end)
{ {

Loading…
Cancel
Save