/[svn]/hopm/trunk/src/irc.c
ViewVC logotype

Diff of /hopm/trunk/src/irc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5052 by michael, Mon Dec 22 11:56:03 2014 UTC revision 5064 by michael, Mon Dec 22 14:21:48 2014 UTC
# Line 309  static void irc_init(void) Line 309  static void irc_init(void)
309     LIST_FOREACH(node, IRCItem->channels->head)     LIST_FOREACH(node, IRCItem->channels->head)
310     {     {
311        chan = (struct ChannelConf *) node->data;        chan = (struct ChannelConf *) node->data;
312        strncat(IRC_CHANNELS, chan->name, MSGLENMAX);        strlcat(IRC_CHANNELS, chan->name, sizeof(IRC_CHANNELS));
313    
314        if(node->next)        if(node->next)
315           strncat(IRC_CHANNELS, ",", MSGLENMAX);           strlcat(IRC_CHANNELS, ",", sizeof(IRC_CHANNELS));
316     }     }
    IRC_CHANNELS[MSGLENMAX] = '\0';  
   
   
317  }  }
318    
319    

Legend:
Removed from v.5052  
changed lines
  Added in v.5064

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28