- Timestamp:
- 2007-11-19T23:41:42Z (17 years ago)
- Branches:
- master
- Children:
- d75597b
- Parents:
- 7df5a08
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r7df5a08 r3e1e11af 78 78 irc->myhost = g_strdup( ipv6_unwrap( buf ) ); 79 79 } 80 else81 {82 /* Rare, but possible. */83 strncpy( irc->myhost, "localhost.localdomain", NI_MAXHOST );84 }85 80 } 86 81 … … 94 89 irc->host = g_strdup( ipv6_unwrap( buf ) ); 95 90 } 96 else97 {98 /* Rare, but possible. */99 strncpy( irc->host, "localhost.localdomain", NI_MAXHOST);100 }101 }91 } 92 93 if( irc->host == NULL ) 94 irc->host = g_strdup( "localhost.localdomain" ); 95 if( irc->myhost == NULL ) 96 irc->myhost = g_strdup( "localhost.localdomain" ); 102 97 103 98 if( global.conf->ping_interval > 0 && global.conf->ping_timeout > 0 )
Note: See TracChangeset
for help on using the changeset viewer.