diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-07 21:25:18 +0000 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-07 21:25:18 +0000 | 
| commit | c84e31ae1e972a327b103ada52cae6a2e2335767 (patch) | |
| tree | 63a705ea23182c39cd4048a358e834aee3a5b931 /irc.c | |
| parent | 69ac78cef9505f334cf61d13825371ce0c67ca16 (diff) | |
Fixed getnameinfo() calls, this fixes Solaris stability issues. Thanks to
Logan O'Sullivan Bruns for the report.
Diffstat (limited to 'irc.c')
| -rw-r--r-- | irc.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -73,7 +73,7 @@ irc_t *irc_new( int fd )  		char buf[NI_MAXHOST+1];  		if( getnameinfo( (struct sockaddr *) &sock, socklen, buf, -		                 NI_MAXHOST, NULL, -1, 0 ) == 0 ) +		                 NI_MAXHOST, NULL, 0, 0 ) == 0 )  		{  			irc->myhost = g_strdup( ipv6_unwrap( buf ) );  		} @@ -84,7 +84,7 @@ irc_t *irc_new( int fd )  		char buf[NI_MAXHOST+1];  		if( getnameinfo( (struct sockaddr *)&sock, socklen, buf, -		                 NI_MAXHOST, NULL, -1, 0 ) == 0 ) +		                 NI_MAXHOST, NULL, 0, 0 ) == 0 )  		{  			irc->host = g_strdup( ipv6_unwrap( buf ) );  		} | 
