[NeoStats-Devel] [Commits] rev 8 - trunk

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: DNB
Date: Thu Mar 17 15:27:39 2005
New Revision: 8

Modified:
   trunk/events.c
Log:
stop segfault on connection event

Modified: trunk/events.c
==============================================================================
--- trunk/events.c	(original)
+++ trunk/events.c	Thu Mar 17 15:27:39 2005
@@ -30,7 +30,7 @@
  * Signon Events
 */
 int SeenSignon (CmdParams *cmdparams) {
-	strlcpy(tmpmsg, cmdparams->param, SS_MESSAGESIZE);
+	ircsnprintf(tmpmsg, SS_MESSAGESIZE, "%s", cmdparams->param);
 	addseenentry(cmdparams->source->name, cmdparams->source->user->username, cmdparams->source->user->hostname, cmdparams->source->user->vhost, tmpmsg, SS_CONNECTED);
 	return NS_SUCCESS;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.