diff options
author | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-22 17:38:39 +0000 |
---|---|---|
committer | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-22 17:38:39 +0000 |
commit | e7a0909b42856893f4c54fb8460901fa1fcb88ce (patch) | |
tree | 2f44894973fdb33786b6718b36836047b28d2742 | |
parent | 4baff382e9e19cb984849d0d5a644289be1f4a3d (diff) | |
download | chromium_src-e7a0909b42856893f4c54fb8460901fa1fcb88ce.zip chromium_src-e7a0909b42856893f4c54fb8460901fa1fcb88ce.tar.gz chromium_src-e7a0909b42856893f4c54fb8460901fa1fcb88ce.tar.bz2 |
Use vector_as_array() in unix_domain_socket_posix.cc
BUG=65151
TEST=None
Review URL: http://codereview.chromium.org/7216022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90049 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/common/unix_domain_socket_posix.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/common/unix_domain_socket_posix.cc b/content/common/unix_domain_socket_posix.cc index 17e8b25..f732366 100644 --- a/content/common/unix_domain_socket_posix.cc +++ b/content/common/unix_domain_socket_posix.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -12,6 +12,7 @@ #include "base/eintr_wrapper.h" #include "base/logging.h" #include "base/pickle.h" +#include "base/stl_util-inl.h" // static bool UnixDomainSocket::SendMsg(int fd, @@ -94,7 +95,7 @@ ssize_t UnixDomainSocket::RecvMsg(int fd, } fds->resize(wire_fds_len); - memcpy(&(*fds)[0], wire_fds, sizeof(int) * wire_fds_len); + memcpy(vector_as_array(fds), wire_fds, sizeof(int) * wire_fds_len); return r; } @@ -143,4 +144,3 @@ ssize_t UnixDomainSocket::SendRecvMsg(int fd, return reply_len; } - |