diff options
author | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-22 05:19:17 +0000 |
---|---|---|
committer | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-22 05:19:17 +0000 |
commit | e0b93ff58c788305587ab94c49299d9031129553 (patch) | |
tree | 2645e6bd2f9ba8b368747c1f381984b97f79f798 /ipc | |
parent | 4c798d25f332ee2fff45a084b38944f513af9ab3 (diff) | |
download | chromium_src-e0b93ff58c788305587ab94c49299d9031129553.zip chromium_src-e0b93ff58c788305587ab94c49299d9031129553.tar.gz chromium_src-e0b93ff58c788305587ab94c49299d9031129553.tar.bz2 |
Use vector_as_array() in ipc/ipc_channel_posix.cc
BUG=65151
TEST=None
Review URL: http://codereview.chromium.org/7216030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_channel_posix.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc index 7aa04d2..2994828 100644 --- a/ipc/ipc_channel_posix.cc +++ b/ipc/ipc_channel_posix.cc @@ -24,6 +24,7 @@ #include "base/memory/scoped_ptr.h" #include "base/memory/singleton.h" #include "base/process_util.h" +#include "base/stl_util-inl.h" #include "base/string_util.h" #include "base/synchronization/lock.h" #include "ipc/ipc_descriptors.h" @@ -737,7 +738,7 @@ bool Channel::ChannelImpl::ProcessIncomingMessages() { } input_overflow_fds_ = std::vector<int>(&fds[fds_i], &fds[num_fds]); fds_i = 0; - fds = &input_overflow_fds_[0]; + fds = vector_as_array(&input_overflow_fds_); num_fds = input_overflow_fds_.size(); } input_overflow_buf_.assign(p, end - p); |