Update rcon.cpp

This commit is contained in:
Maurice Heumann 2023-03-16 08:07:21 +01:00 committed by GitHub
parent 00c99834ef
commit 5f82e480c6

View File

@ -17,7 +17,7 @@ namespace rcon
{
std::optional<std::string> get_and_validate_rcon_command(const std::string& data)
{
const command::params params{reinterpret_cast<const char*>(data.data())};
const command::params params{data.data()};
if (params.size() <= 1)
{