Index: webrtc/base/natsocketfactory.cc |
diff --git a/webrtc/base/natsocketfactory.cc b/webrtc/base/natsocketfactory.cc |
index 548a80caa88a1785e6355b84b0cb892d1783a63a..0abd2a1b056d80b600a667cabbb59b4637e0a2e8 100644 |
--- a/webrtc/base/natsocketfactory.cc |
+++ b/webrtc/base/natsocketfactory.cc |
@@ -10,6 +10,7 @@ |
#include "webrtc/base/natsocketfactory.h" |
+#include "webrtc/base/arraysize.h" |
#include "webrtc/base/logging.h" |
#include "webrtc/base/natserver.h" |
#include "webrtc/base/virtualsocketserver.h" |
@@ -270,7 +271,7 @@ class NATSocket : public AsyncSocket, public sigslot::has_slots<> { |
// Sends the destination address to the server to tell it to connect. |
void SendConnectRequest() { |
char buf[kNATEncodedIPv6AddressSize]; |
- size_t length = PackAddressForNAT(buf, ARRAY_SIZE(buf), remote_addr_); |
+ size_t length = PackAddressForNAT(buf, arraysize(buf), remote_addr_); |
socket_->Send(buf, length); |
} |