ebusctl: fix len of receive buffer.

This commit is contained in:
Roland Jax
2015-01-02 19:09:00 +01:00
parent c490dcd3da
commit 92e6178ef7
+1 -1
View File
@@ -84,7 +84,7 @@ bool connect(const char* host, int port, bool once)
}
memset(data, 0, sizeof(data));
datalen = socket->recv(data, sizeof(data));
datalen = socket->recv(data, sizeof(data)-1);
if (datalen < 0) {
perror("send");