aboutsummaryrefslogtreecommitdiff
path: root/src/udpsocket.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-02-25 08:01:24 +0000
committerMike Buland <eichlan@xagasoft.com>2012-02-25 08:01:24 +0000
commitee1b79396076edc4e30aefb285fada03bb45e80d (patch)
tree838595842a21db90a8e3aacd99825e1474e0b78d /src/udpsocket.cpp
parent571d6a4bb768e0042ff544e4d9854204c4f3622f (diff)
downloadlibbu++-ee1b79396076edc4e30aefb285fada03bb45e80d.tar.gz
libbu++-ee1b79396076edc4e30aefb285fada03bb45e80d.tar.bz2
libbu++-ee1b79396076edc4e30aefb285fada03bb45e80d.tar.xz
libbu++-ee1b79396076edc4e30aefb285fada03bb45e80d.zip
Fixed 32/64 bit issue in UdpSocket.
Diffstat (limited to 'src/udpsocket.cpp')
-rw-r--r--src/udpsocket.cpp2
1 files changed, 1 insertions, 1 deletions
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,
104 Bu::UdpSocket::addr &aHost, int &iPort ) 104 Bu::UdpSocket::addr &aHost, int &iPort )
105{ 105{
106 sockaddr_in name; 106 sockaddr_in name;
107 size_t size = sizeof(name); 107 socklen_t size = sizeof(name);
108 Bu::size ret = recvfrom( iUdpSocket, pBuf, nBytes, 0, 108 Bu::size ret = recvfrom( iUdpSocket, pBuf, nBytes, 0,
109 (struct sockaddr *)&name, &size ); 109 (struct sockaddr *)&name, &size );
110 aHost = name.sin_addr.s_addr; 110 aHost = name.sin_addr.s_addr;