summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2018-07-17 18:59:39 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-07-17 18:59:39 +0000
commit8ec1abdbcc637f60554828356fce5d7d1c3cc722 (patch)
tree611f6684a5b7e3904ee59ca55c31ecafe0435e74
parentf03645487278d274f01d2ed963bfee63d7a16cc9 (diff)
parent764280a544babd0dd9984cb02fe068822255191d (diff)
Merge "ART: Address comment in Idaca9fe129ddc91aab79c65b3d0ca86f057848de"
-rw-r--r--oatdump/oatdump_test.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/oatdump/oatdump_test.h b/oatdump/oatdump_test.h
index 18b8439fbc..2c28f06b2e 100644
--- a/oatdump/oatdump_test.h
+++ b/oatdump/oatdump_test.h
@@ -225,8 +225,7 @@ class OatDumpTest : public CommonRuntimeTest {
if (len > 0) {
size_t pos = error_buf.size();
if (pos < MB) {
- error_buf.resize(pos + len);
- memcpy(error_buf.data() + pos, buf, len);
+ error_buf.insert(error_buf.end(), buf, buf + len);
}
}