[cvslog] (2003-04-04 15:51:49 UTC) Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Fri Apr 4 09:51:49 CST 2003


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2003-04-04 15:51:49 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     modules/server/dcc.c

Log message:

* snprintf error

---------------------- diff included ----------------------
Index: eggdrop1.7/modules/server/dcc.c
diff -u eggdrop1.7/modules/server/dcc.c:1.10 eggdrop1.7/modules/server/dcc.c:1.11
--- eggdrop1.7/modules/server/dcc.c:1.10	Thu Apr  3 22:04:46 2003
+++ eggdrop1.7/modules/server/dcc.c	Fri Apr  4 09:51:39 2003
@@ -130,7 +130,7 @@
 	if (timeout > 0) {
 		char buf[128];
 
-		snprintf(buf, "dcc listen port %d", port);
+		snprintf(buf, sizeof(buf), "dcc listen port %d", port);
 		howlong.sec = timeout;
 		howlong.usec = 0;
 		listen->timer_id = timer_create_complex(&howlong, buf, dcc_listen_timeout, listen, 0);
----------------------- End of diff -----------------------


More information about the Changes mailing list