diff options
Diffstat (limited to 'simpleperf/cmd_debug_unwind.cpp')
-rw-r--r-- | simpleperf/cmd_debug_unwind.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/cmd_debug_unwind.cpp b/simpleperf/cmd_debug_unwind.cpp index f5fecc46..53fd38b8 100644 --- a/simpleperf/cmd_debug_unwind.cpp +++ b/simpleperf/cmd_debug_unwind.cpp @@ -350,7 +350,8 @@ bool DebugUnwindCommand::WriteFeatureSections() { // Copy all feature sections except FEAT_FILE and FEAT_META_INFO, which require special handling. while (it != features.end() && it->first < PerfFileFormat::FEAT_FILE) { std::vector<char> data; - if (!reader_->ReadFeatureSection(it->first, &data) || !writer_->WriteFeature(it->first, data)) { + if (!reader_->ReadFeatureSection(it->first, &data) || + !writer_->WriteFeature(it->first, data.data(), data.size())) { return false; } ++it; |