summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client
diff options
context:
space:
mode:
authorygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-12 18:25:31 +0000
committerygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-12 18:25:31 +0000
commit8131c0639529847ce60d16a24ceef9d50a527b2b (patch)
treee2b322890e29c60979008781794173ceb8b7c0ab /ppapi/native_client
parentdd36be7d5dba931aec1886161716acd31bc88654 (diff)
downloadchromium_src-8131c0639529847ce60d16a24ceef9d50a527b2b.zip
chromium_src-8131c0639529847ce60d16a24ceef9d50a527b2b.tar.gz
chromium_src-8131c0639529847ce60d16a24ceef9d50a527b2b.tar.bz2
Fixed PPAPI_UDPSocketPrivate::GetRecvFromAddress
BUG=chromium:127530 TEST=browser_tests:PPAPINaClTest.UDPSocketPrivate Review URL: https://chromiumcodereview.appspot.com/10332086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/native_client')
-rw-r--r--ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_udp_socket_private.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_udp_socket_private.cc b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_udp_socket_private.cc
index d690d5d..f38dcc0 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_udp_socket_private.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_udp_socket_private.cc
@@ -148,7 +148,8 @@ PP_Bool GetRecvFromAddress(PP_Resource udp_socket,
DebugPrintf("PPB_UDPSocket_Private::GetRecvFromAddress: "
"udp_socket="NACL_PRId32"\n", udp_socket);
- nacl_abi_size_t addr_bytes;
+ nacl_abi_size_t addr_bytes =
+ static_cast<nacl_abi_size_t>(sizeof(PP_NetAddress_Private));
int32_t success;
NaClSrpcError srpc_result =
PpbUDPSocketPrivateRpcClient::PPB_UDPSocket_Private_GetRecvFromAddress(