summaryrefslogtreecommitdiffstats
path: root/WebCore/websockets/WebSocketChannel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/websockets/WebSocketChannel.cpp')
-rw-r--r--WebCore/websockets/WebSocketChannel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/websockets/WebSocketChannel.cpp b/WebCore/websockets/WebSocketChannel.cpp
index 54be16a..a09224d 100644
--- a/WebCore/websockets/WebSocketChannel.cpp
+++ b/WebCore/websockets/WebSocketChannel.cpp
@@ -88,7 +88,8 @@ bool WebSocketChannel::send(const String& msg)
ASSERT(!m_suspended);
Vector<char> buf;
buf.append('\0'); // frame type
- buf.append(msg.utf8().data(), msg.utf8().length());
+ CString utf8 = msg.utf8();
+ buf.append(utf8.data(), utf8.length());
buf.append('\xff'); // frame end
return m_handle->send(buf.data(), buf.size());
}