diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-03-25 09:23:11 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-03-25 09:23:11 +0000 |
| commit | b677f9da63c563c6abb44ab733f7fabe456ba57a (patch) | |
| tree | 8d272d03d9295668d77f062991ff961dd7db7632 /src | |
| parent | 0bc57e43d20d519761780b6adc7cdb2a24a34592 (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.cc b/src/remote.cc index ecdc03ce..e2c74417 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -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); } |
