* Oops, forgot to initialize some data structures...
authorArt Cancro <ajc@citadel.org>
Tue, 22 Mar 2005 21:53:48 +0000 (21:53 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 22 Mar 2005 21:53:48 +0000 (21:53 +0000)
citadel/ChangeLog
citadel/serv_smtp.c

index b735bfea7e9d1dddb7290bfa90bb3d887b519237..71eb6333bac3c76c0030276a1c2ad7e489fc61a2 100644 (file)
@@ -1,4 +1,7 @@
  $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
 
@@ -6556,4 +6559,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index 9adee16344b88ab2d471c6cf20d5d4fabfc3983f..a354110c8451ee8509bbbcb3b31fb628868a1c76 100644 (file)
@@ -131,8 +131,9 @@ void smtp_greeting(void) {
        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);
 }