diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-30 08:57:01 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-30 08:57:01 +0200 |
commit | 8f45a259fc9f8180b366cbaccac1af6d368e3b3a (patch) | |
tree | 5045baec395404f39728611190925f4ce39c2ae4 /Servers/TelnetServer | |
parent | dd696e7c75c5fb630d10d0ce37e53d88fecb58a0 (diff) | |
download | serenity-8f45a259fc9f8180b366cbaccac1af6d368e3b3a.zip |
ByteBuffer: Remove pointer() in favor of data()
We had two ways to get the data inside a ByteBuffer. That was silly.
Diffstat (limited to 'Servers/TelnetServer')
-rw-r--r-- | Servers/TelnetServer/Client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Servers/TelnetServer/Client.cpp b/Servers/TelnetServer/Client.cpp index fc0498a753..76d476113b 100644 --- a/Servers/TelnetServer/Client.cpp +++ b/Servers/TelnetServer/Client.cpp @@ -149,7 +149,7 @@ void Client::send_commands(Vector<Command> commands) for (auto& command : commands) stream << (u8)IAC << command.command << command.subcommand; stream.snip(); - m_socket->write(buffer.pointer(), buffer.size()); + m_socket->write(buffer.data(), buffer.size()); } void Client::quit() |