Skip to content

Commit

Permalink
Fix -Wstringop-truncation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlnilsen committed Sep 10, 2019
1 parent e395cf4 commit d3fb54d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -226,7 +226,7 @@ struct Message

explicit Message(u32 source_uid) : m_message{}
{
strncpy((char*)m_message.header.source, MsgType::FROM, sizeof(m_message.header.source));
memcpy((char*)m_message.header.source, MsgType::FROM, sizeof(m_message.header.source));
m_message.header.protocol_version = CEMUHOOK_PROTOCOL_VERSION;
m_message.header.message_length = sizeof(*this) - sizeof(m_message.header);
m_message.header.source_uid = source_uid;
Expand Down

0 comments on commit d3fb54d

Please sign in to comment.