Index: runtime/vm/compilation_trace.h |
diff --git a/runtime/vm/compilation_trace.h b/runtime/vm/compilation_trace.h |
index cf7530cc74e20361ae23e15752e0ea9eade8d642..3e9e528d457d847ac5d4bb152219f524067211ea 100644 |
--- a/runtime/vm/compilation_trace.h |
+++ b/runtime/vm/compilation_trace.h |
@@ -20,7 +20,7 @@ class CompilationTraceSaver : public FunctionVisitor { |
void StealBuffer(uint8_t** buffer, intptr_t* buffer_length) { |
*buffer = reinterpret_cast<uint8_t*>(buf_.buffer()); |
- *buffer_length = buf_.length() + 1; // Include terminating NUL. |
+ *buffer_length = buf_.length(); |
} |
private: |
@@ -36,7 +36,7 @@ class CompilationTraceLoader : public ValueObject { |
public: |
explicit CompilationTraceLoader(Thread* thread); |
- RawObject* CompileTrace(char* buffer); |
+ RawObject* CompileTrace(uint8_t* buffer, intptr_t buffer_length); |
private: |
RawObject* CompileTriple(const char* uri_cstr, |