diff --git a/library/RemoteServer.cpp b/library/RemoteServer.cpp index df65e8e5a..bc30daff3 100644 --- a/library/RemoteServer.cpp +++ b/library/RemoteServer.cpp @@ -261,7 +261,7 @@ void ServerConnection::threadFn() break; } - std::auto_ptr buf(new uint8_t[header.size]); + std::unique_ptr buf(new uint8_t[header.size]); if (!readFullBuffer(socket, buf.get(), header.size)) {