Fix cutting of one character when showing ips in rcon

The buffer size passed to `str_append` includes the null terminator.
This commit is contained in:
Zwelf 2020-09-27 10:07:26 +02:00
parent 6bb8cda483
commit cb2c1d2144

View file

@ -1227,7 +1227,7 @@ void CServer::SendRconLineAuthed(const char *pLine, void *pUser, bool Highlighte
else
{
str_append(aLine, pLine, pStart - pLine + 1);
str_append(aLine, pStart + 2, pStart - pLine + pEnd - pStart - 2);
str_append(aLine, pStart + 2, pStart - pLine + pEnd - pStart - 1);
str_append(aLine, pEnd + 2, sizeof(aLine));
str_append(aLineWithoutIps, pLine, pStart - pLine + 1);