mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
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:
parent
6bb8cda483
commit
cb2c1d2144
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue