summaryrefslogtreecommitdiff
path: root/i/simulotron/src/socket/socket_client.cc
diff options
context:
space:
mode:
authorhaller2005-12-05 21:39:42 +0000
committerhaller2005-12-05 21:39:42 +0000
commitd727e1e4440fef16c425990040ef508df985dc89 (patch)
tree9fc4925dad25d6900a00d73e1a472f893f0411d7 /i/simulotron/src/socket/socket_client.cc
parent578af6c6ae714fb3f88a822b5e27ebf83c6e1e84 (diff)
Suppression d'une ligne inutile dans SocketClient::write
Remaniement du testGS
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);