diff options
| author | 2005-05-18 19:38:29 +0000 | |
|---|---|---|
| committer | 2005-05-18 19:38:29 +0000 | |
| commit | 8946bc2a17d78481dfa7928f11c00dba12a1d120 (patch) | |
| tree | 0e27140f3270a65ac7cd0b717c93d4257ddd94eb /src/inspircd_io.cpp | |
| parent | Fixes for solaris pwd (diff) | |
bzero removed for compatibility with solaris 10
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1427 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
| -rw-r--r-- | src/inspircd_io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 1a5046068..0b4f66a98 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -619,7 +619,7 @@ int ConfValue(char* tag, char* var, int index, char *result,std::stringstream *c // This will bind a socket to a port. It works for UDP/TCP int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr) { - bzero((char *)&server,sizeof(server)); + memcpy((char *)&server,0,sizeof(server)); struct in_addr addy; inet_aton(addr,&addy); server.sin_family = AF_INET; |
