diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-15 17:59:34 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-15 17:59:34 +0000 |
commit | 5fa8e19883aaac580a1352dbbc1995e24c635c0d (patch) | |
tree | 0506dbca9bbdd4b3db4a830dd5924b944023549b /net | |
parent | d6819ca930452873dec0ab38d36badd53661cefd (diff) | |
download | chromium_src-5fa8e19883aaac580a1352dbbc1995e24c635c0d.zip chromium_src-5fa8e19883aaac580a1352dbbc1995e24c635c0d.tar.gz chromium_src-5fa8e19883aaac580a1352dbbc1995e24c635c0d.tar.bz2 |
Fix memset bug in NetworkChangeNotifierLinux.
Props to thakis/clang for catching this.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7167009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89212 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/network_change_notifier_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/base/network_change_notifier_linux.cc b/net/base/network_change_notifier_linux.cc index c19d182..3937de0 100644 --- a/net/base/network_change_notifier_linux.cc +++ b/net/base/network_change_notifier_linux.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. @@ -132,7 +132,7 @@ int NetworkChangeNotifierLinux::Thread::ReadNotificationMessage( size_t len) { DCHECK_NE(len, 0u); DCHECK(buf); - memset(buf, 0, sizeof(buf)); + memset(buf, 0, len); int rv = recv(netlink_fd_, buf, len, 0); if (rv > 0) return rv; |