Update steam_friends.h, data.m_rgchConnect was missing null terminator.
parent
3ea9e40922
commit
d0727267e0
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue