From ee1b79396076edc4e30aefb285fada03bb45e80d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 25 Feb 2012 08:01:24 +0000 Subject: Fixed 32/64 bit issue in UdpSocket. --- src/udpsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/udpsocket.cpp') diff --git a/src/udpsocket.cpp b/src/udpsocket.cpp index 055d584..702840a 100644 --- a/src/udpsocket.cpp +++ b/src/udpsocket.cpp @@ -104,7 +104,7 @@ Bu::size Bu::UdpSocket::read( void *pBuf, Bu::size nBytes, Bu::UdpSocket::addr &aHost, int &iPort ) { sockaddr_in name; - size_t size = sizeof(name); + socklen_t size = sizeof(name); Bu::size ret = recvfrom( iUdpSocket, pBuf, nBytes, 0, (struct sockaddr *)&name, &size ); aHost = name.sin_addr.s_addr; -- cgit v1.2.3