]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_smtp.c
removed all references to sprintf from several files (not all files yet)
[citadel.git] / citadel / serv_smtp.c
index 309c512a33ff20016165ddd954d8618bf4ff9577..25082d77c12e04fca656e6bedf7f3a17de98c94c 100644 (file)
@@ -470,7 +470,7 @@ void smtp_data(void) {
 
        cprintf("354 Transmit message now; terminate with '.' by itself\r\n");
        
-       datestring(nowstamp, time(NULL), DATESTRING_RFC822);
+       datestring(nowstamp, sizeof nowstamp, time(NULL), DATESTRING_RFC822);
        body = mallok(4096);
 
        /* FIXME
@@ -478,8 +478,7 @@ void smtp_data(void) {
         */
        if (body != NULL) snprintf(body, 4096,
                "Received: from %s (%s)\n"
-               "       by %s;\n"
-               "       %s\n",
+               "       by %s; %s\n",
                        SMTP->helo_node,
                        CC->cs_host,
                        config.c_fqdn,