Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 1ee6023859eb80c2993a849ee27e725f3ce90831..fdcb170e59cf5bf6dbf4f104a25535e66cc38522 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -20586,6 +20586,7 @@ const char* Stacktrace::ToCStringInternal(intptr_t* frame_index, |
char* chars = isolate->current_zone()->Alloc<char>(truncated_len); |
OS::SNPrint(chars, truncated_len, "%s", kTruncated); |
frame_strings.Add(chars); |
+ total_len += truncated_len; |
} |
} else if (function.is_visible() || FLAG_show_invisible_frames) { |
code = CodeAtFrame(i); |