Index: examples/native_run_app/native_run_app.cc |
diff --git a/examples/native_run_app/native_run_app.cc b/examples/native_run_app/native_run_app.cc |
index a736dc369cd6ae47a6731edb7617b6daf14cc1d1..306265f456b21a0ccf833e90543d7480619a9229 100644 |
--- a/examples/native_run_app/native_run_app.cc |
+++ b/examples/native_run_app/native_run_app.cc |
@@ -52,7 +52,7 @@ class TerminalConnection { |
private: |
void Write(const char* s, mojo::files::File::WriteCallback callback) { |
size_t length = strlen(s); |
- mojo::Array<uint8_t> a(length); |
+ auto a = mojo::Array<uint8_t>::New(length); |
memcpy(&a[0], s, length); |
terminal_->Write(a.Pass(), 0, mojo::files::Whence::FROM_CURRENT, callback); |
} |