Index: net/base/network_change_notifier_linux.cc |
diff --git a/net/base/network_change_notifier_linux.cc b/net/base/network_change_notifier_linux.cc |
index c19d18281d94c7b09f57d3d74619342a61ed4437..3937de0ec3da8db7067c2ae07c0a3c68027d2791 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; |