Merge pull request #1301 from kunkku/event-memcpy-overlap
zm_event: fix overlap in memcpy buffers
This commit is contained in:
commit
b653f74b09
|
@ -1121,7 +1121,7 @@ void EventStream::processCommand( const CmdMsg *msg )
|
|||
|
||||
DataMsg status_msg;
|
||||
status_msg.msg_type = MSG_DATA_EVENT;
|
||||
memcpy( &status_msg.msg_data, &status_data, sizeof(status_msg.msg_data) );
|
||||
memcpy( &status_msg.msg_data, &status_data, sizeof(status_data) );
|
||||
if ( sendto( sd, &status_msg, sizeof(status_msg), MSG_DONTWAIT, (sockaddr *)&rem_addr, sizeof(rem_addr) ) < 0 )
|
||||
{
|
||||
//if ( errno != EAGAIN )
|
||||
|
|
Loading…
Reference in New Issue