summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-03-25 09:23:11 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-03-25 09:23:11 +0000
commitb677f9da63c563c6abb44ab733f7fabe456ba57a (patch)
tree8d272d03d9295668d77f062991ff961dd7db7632 /src
parent0bc57e43d20d519761780b6adc7cdb2a24a34592 (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.cc2
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);
}