Update steam_friends.h, data.m_rgchConnect was missing null terminator.

merge-requests/8/head
Nemirtingas 2019-06-14 09:36:39 +00:00
parent 3ea9e40922
commit d0727267e0
1 changed files with 1 additions and 1 deletions

View File

@ -1034,7 +1034,7 @@ void Callback(Common_Message *msg)
std::string const& connect_str = msg->friend_messages().connect_str(); std::string const& connect_str = msg->friend_messages().connect_str();
GameRichPresenceJoinRequested_t data; GameRichPresenceJoinRequested_t data;
data.m_steamIDFriend = CSteamID((uint64)msg->source_id()); data.m_steamIDFriend = CSteamID((uint64)msg->source_id());
strncpy(data.m_rgchConnect, connect_str.c_str(), connect_str.length()); strncpy(data.m_rgchConnect, connect_str.c_str(), connect_str.length()+1);
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data)); callbacks->addCBResult(data.k_iCallback, &data, sizeof(data));
} }
} }