mirror of https://github.com/ShaYmez/xlxd.git
Merge pull request #179 from yo2loj/patch-1
Update buffer allocation to the correct size
This commit is contained in:
commit
11f3f9aa51
|
@ -92,7 +92,7 @@ int CRawSocket::Receive(CBuffer *Buffer, CIp *Ip, int timeout)
|
||||||
if ( m_Socket != -1 )
|
if ( m_Socket != -1 )
|
||||||
{
|
{
|
||||||
// allocate buffer
|
// allocate buffer
|
||||||
Buffer->resize(UDP_BUFFER_LENMAX);
|
Buffer->resize(RAW_BUFFER_LENMAX);
|
||||||
|
|
||||||
// control socket
|
// control socket
|
||||||
FD_ZERO(&FdSet);
|
FD_ZERO(&FdSet);
|
||||||
|
|
Loading…
Reference in New Issue