Index: runtime/platform/text_buffer.cc |
diff --git a/runtime/platform/text_buffer.cc b/runtime/platform/text_buffer.cc |
index 5b4cc05f8021417e0d3b290759a177aeb5aa8717..44152e6a2b14bb950f58a2072c5b3836d3388572 100644 |
--- a/runtime/platform/text_buffer.cc |
+++ b/runtime/platform/text_buffer.cc |
@@ -32,8 +32,8 @@ void TextBuffer::Clear() { |
} |
-const char* TextBuffer::Steal() { |
- const char* r = buf_; |
+char* TextBuffer::Steal() { |
+ char* r = buf_; |
buf_ = NULL; |
buf_size_ = 0; |
msg_len_ = 0; |