* room on a Citadel server. It handles iCalendar objects using the
* iTIP protocol. See RFCs 2445 and 2446.
*
- * Copyright (c) 1987-2022 by the citadel.org team
+ * Copyright (c) 1987-2023 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
msg->cm_magic = CTDLMESSAGE_MAGIC;
msg->cm_anon_type = MES_NORMAL;
msg->cm_format_type = 4;
- CM_SetField(msg, eAuthor, CCC->user.fullname, strlen(CCC->user.fullname));
- CM_SetField(msg, eOriginalRoom, CCC->room.QRname, strlen(CCC->room.QRname));
+ CM_SetField(msg, eAuthor, CCC->user.fullname);
+ CM_SetField(msg, eOriginalRoom, CCC->room.QRname);
MsgBody = NewStrBufPlain(NULL, serlen + 100);
StrBufAppendBufPlain(MsgBody, HKEY("Content-type: text/calendar\r\n\r\n"), 0);
if (p != NULL) {
pch = icalproperty_get_comment(p);
if (!IsEmptyStr(pch)) {
- CM_SetField(msg, eExclusiveID, pch, strlen(pch));
+ CM_SetField(msg, eExclusiveID, pch);
syslog(LOG_DEBUG, "calendar: saving calendar UID <%s>", pch);
}
}