Index: runtime/bin/eventhandler_macos.cc |
diff --git a/runtime/bin/eventhandler_macos.cc b/runtime/bin/eventhandler_macos.cc |
index 45ea418cf4634e02ca8ae68085ad21eed549ee93..7d8d04bbb0385ba1c5d47fb20fbabf9223ac9848 100644 |
--- a/runtime/bin/eventhandler_macos.cc |
+++ b/runtime/bin/eventhandler_macos.cc |
@@ -71,7 +71,7 @@ void EventHandlerImplementation::SetPort(intptr_t fd, |
new_port_map_bytes)); |
ASSERT(port_map_ != NULL); |
size_t port_map_bytes = port_map_size_ * sizeof(PortData); |
- memset(port_map_ + port_map_bytes, |
+ memset(port_map_ + port_map_size_, |
0, |
new_port_map_bytes - port_map_bytes); |
port_map_size_ = new_port_map_size; |