Merge pull request #179 from yo2loj/patch-1

Update buffer allocation to the correct size
pull/174/head
LX3JL 5 years ago committed by GitHub
commit 11f3f9aa51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -92,7 +92,7 @@ int CRawSocket::Receive(CBuffer *Buffer, CIp *Ip, int timeout)
if ( m_Socket != -1 )
{
// allocate buffer
Buffer->resize(UDP_BUFFER_LENMAX);
Buffer->resize(RAW_BUFFER_LENMAX);
// control socket
FD_ZERO(&FdSet);

Loading…
Cancel
Save

Powered by TurnKey Linux.