]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_smtp.c
* Significantly reduced the memory footprint of struct CitContext.
[citadel.git] / citadel / serv_smtp.c
index 6c46264e9c8c6b1065b591a93cee2e02a7cfbbf1..2990b340a418e65c9c8b1c61dfa2bc1ae1b8a38e 100644 (file)
@@ -537,7 +537,7 @@ void smtp_mail(char *argbuf) {
         * to be the user's Internet e-mail address as Citadel knows it.
         */
        if (CC->logged_in) {
-               strcpy(SMTP->from, CC->cs_inet_email);
+               safestrncpy(SMTP->from, CC->cs_inet_email, sizeof SMTP->from);
                cprintf("250 2.1.0 Sender ok <%s>\r\n", SMTP->from);
                SMTP->message_originated_locally = 1;
                return;