more places where we can use cm_lengths;
[citadel.git] / citadel / modules / ctdlproto / serv_messages.c
index f7ac4575e3d0e1a7162e93c7408400cdbd8b0590..e2fda42ce4ad26ddb026c094d73ad21a3b61bef7 100644 (file)
@@ -604,7 +604,7 @@ void cmd_ent0(char *entargs)
                 * to the actual mail address so others get a valid
                 * reply-to-header.
                 */
                 * to the actual mail address so others get a valid
                 * reply-to-header.
                 */
-               msg->cm_fields[eenVelopeTo] = strdup(valid->recp_orgroom);
+               CM_SetField(msg, eenVelopeTo, valid->recp_orgroom, strlen(valid->recp_orgroom));
        }
 
        if (msg != NULL) {
        }
 
        if (msg != NULL) {