summaryrefslogtreecommitdiff
path: root/i/simulotron/src/socket/socket_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'i/simulotron/src/socket/socket_client.cc')
-rw-r--r--i/simulotron/src/socket/socket_client.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/i/simulotron/src/socket/socket_client.cc b/i/simulotron/src/socket/socket_client.cc
index 9099089..ef26e70 100644
--- a/i/simulotron/src/socket/socket_client.cc
+++ b/i/simulotron/src/socket/socket_client.cc
@@ -91,7 +91,6 @@ SocketClient::write (const std::string & str)
int size = str.size () - pos < BUFFER_SIZE - 1 ? str.size () - pos:BUFFER_SIZE - 1;
str.copy (buffer, size, pos);
pos += size;
- buffer[size] = 0;
retval = ::write (socket_, buffer, size);
if (retval < 0)
throw errno_exception ("SocketClient: erreur d'écriture (write()) ", errno);