$Log$
+ Revision 641.31 2005/03/22 21:53:48 ajc
+ * Oops, forgot to initialize some data structures...
+
Revision 641.30 2005/03/22 16:49:29 ajc
* Fixed a couple of memory allocation bugs
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
SMTP = malloc(sizeof(struct citsmtp));
SMTP_RECPS = malloc(SIZ);
SMTP_ROOMS = malloc(SIZ);
- snprintf(SMTP_RECPS, SIZ, "%s", "");
- snprintf(SMTP_ROOMS, SIZ, "%s", "");
+ memset(SMTP, 0, sizeof(struct citsmtp));
+ memset(SMTP_RECPS, 0, SIZ);
+ memset(SMTP_ROOMS, 0, SIZ);
cprintf("220 %s ESMTP Citadel server ready.\r\n", config.c_fqdn);
}