- Timestamp:
- Jan 18, 2015, 8:46:13 PM (10 years ago)
- Branches:
- master
- Children:
- cb7c494
- Parents:
- 8f5ba64
- git-author:
- Mike Belopuhov <mike@…> (01/18/15 16:05:42)
- git-committer:
- Mike Belopuhov <mike@…> (01/18/15 20:46:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
icb.c
r8f5ba64 r0519a87 15 15 */ 16 16 17 #include <sys/ param.h>17 #include <sys/types.h> 18 18 #include <sys/queue.h> 19 #include <netdb.h> 19 20 #include <stdarg.h> 20 21 #include <stdio.h> … … 31 32 32 33 extern int creategroups; 33 extern char srvname[ MAXHOSTNAMELEN];34 extern char srvname[NI_MAXHOST]; 34 35 35 36 void icb_command(struct icb_session *, char *, char *); … … 50 51 (void)gethostname(srvname, sizeof srvname); 51 52 /* 52 * MAXHOSTNAMELENis usually greater than what we53 * NI_MAXHOST is usually greater than what we 53 54 * can actually send, hence truncation: 54 55 */ … … 185 186 if (client && strlen(client) > 0) 186 187 icb_vis(is->client, client, sizeof is->client, VIS_SP); 188 else 189 strlcpy(is->client, is->nick, sizeof is->client); 187 190 is->group = ig; 188 191 is->login = time(NULL);
Note:
See TracChangeset
for help on using the changeset viewer.