mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-23 23:34:12 +03:00
do not write the trailing nul char in send_commands
That triggered creation of a new client, followed by it's immediate destruction due to the connection closing.
This commit is contained in:
parent
0bc57e43d2
commit
b677f9da63
@ -467,7 +467,7 @@ void send_command(const String& session, const String& command)
|
||||
|
||||
{
|
||||
Message msg(sock);
|
||||
msg.write(command.c_str(), (int)command.length()+1);
|
||||
msg.write(command.c_str(), (int)command.length());
|
||||
}
|
||||
close(sock);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user