From b04195317ae7c65f011025740e43079159734a33 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 15:08:16 +0000 Subject: Use sa_size() rather than sizeof() when passing input parameters to a syscall git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11583 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 3b0c63931..d8e710d56 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -61,7 +61,7 @@ bool InspIRCd::BindSocket(int sockfd, int port, const char* addr, bool dolisten) #endif } } - ret = SE->Bind(sockfd, &servaddr.sa, sizeof(servaddr)); + ret = SE->Bind(sockfd, &servaddr.sa, sa_size(servaddr)); if (ret < 0) { -- cgit v1.2.3