diff options
author | Shauren <shauren.trinity@gmail.com> | 2017-05-13 14:24:34 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2017-05-13 14:24:34 +0200 |
commit | bd456342e2e2e63264c1884e417b2779c9dab019 (patch) | |
tree | 519abca6d25c614eea5afbc14ff52324a583ea13 | |
parent | da32ff84d6f9b0fa0f346a6331aa81e930d8c5c9 (diff) |
Fixed build for older boost version used on travis
-rw-r--r-- | src/server/worldserver/RemoteAccess/RASession.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/worldserver/RemoteAccess/RASession.cpp b/src/server/worldserver/RemoteAccess/RASession.cpp index 62a25142225..3f30595ef23 100644 --- a/src/server/worldserver/RemoteAccess/RASession.cpp +++ b/src/server/worldserver/RemoteAccess/RASession.cpp @@ -25,7 +25,6 @@ #include "World.h" #include <boost/asio/buffer.hpp> #include <boost/asio/read_until.hpp> -#include <array> #include <memory> using boost::asio::ip::tcp; @@ -40,7 +39,8 @@ void RASession::Start() if (_socket.available() > 0) { // Handle subnegotiation - std::array<char, 1024> buf; + char buf[1024]; + memset(buf, 0, sizeof(buf)); _socket.read_some(boost::asio::buffer(buf)); // Send the end-of-negotiation packet |