Index: remoting/host/gnubby_socket.cc |
diff --git a/remoting/host/gnubby_socket.cc b/remoting/host/gnubby_socket.cc |
index 09d5d301825f9a9b24699de230fd349e2f4be525..40cb7d42a63b72d1eb0a3bd551f29b25690bc87e 100644 |
--- a/remoting/host/gnubby_socket.cc |
+++ b/remoting/host/gnubby_socket.cc |
@@ -4,6 +4,7 @@ |
#include "remoting/host/gnubby_socket.h" |
+#include "base/macros.h" |
#include "base/timer/timer.h" |
#include "net/socket/stream_listen_socket.h" |
@@ -75,7 +76,7 @@ void GnubbySocket::SendResponse(const std::string& response_data) { |
void GnubbySocket::SendSshError() { |
DCHECK(CalledOnValidThread()); |
- SendResponse(kSshError); |
+ SendResponse(std::string(kSshError, arraysize(kSshError))); |
} |
bool GnubbySocket::IsSocket(net::StreamListenSocket* socket) const { |