commit | 764280a544babd0dd9984cb02fe068822255191d | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Tue Jul 17 10:17:22 2018 -0700 |
committer | Andreas Gampe <agampe@google.com> | Tue Jul 17 10:17:22 2018 -0700 |
tree | bc6c323fb03dc0229a34fca6ac6914618d6efae3 | |
parent | 6743f1ebd4a1a266896541acb5c4dde1f78e708f [diff] |
ART: Address comment in Idaca9fe129ddc91aab79c65b3d0ca86f057848de Address a late comment. Test: m test-art-host Change-Id: I34583fcafb3158609d1d126689aa7710c5dd693f
diff --git a/oatdump/oatdump_test.h b/oatdump/oatdump_test.h index 18b8439..2c28f06 100644 --- a/oatdump/oatdump_test.h +++ b/oatdump/oatdump_test.h
@@ -225,8 +225,7 @@ 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); } }