fix rev_data
This commit is contained in:
@ -13,6 +13,7 @@ int WebSocketListener( struct lws *wsi, enum lws_callback_reasons reason, void *
|
|||||||
case LWS_CALLBACK_RECEIVE:
|
case LWS_CALLBACK_RECEIVE:
|
||||||
{
|
{
|
||||||
unsigned char* msg=new uint8_t[8192];
|
unsigned char* msg=new uint8_t[8192];
|
||||||
|
memset(msg,0,sizeof(msg));
|
||||||
memcpy(msg,in,len);
|
memcpy(msg,in,len);
|
||||||
ddncq->gamectx->SendChat(-1,CGameContext::CHAT_ALL,(const char*)msg);
|
ddncq->gamectx->SendChat(-1,CGameContext::CHAT_ALL,(const char*)msg);
|
||||||
delete[] msg;
|
delete[] msg;
|
||||||
|
Reference in New Issue
Block a user