X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcalendar.c;h=f0f34ef84e05a4344b449df7032f2cbf2a7394d2;hb=a34ab2fe2c99fda491eb8ae91371774a32c2612e;hp=1185bfc22d233dbb8bda5e3d94573a1443ad63b0;hpb=039ccdbb1a9d4124f6c1a03c29cbdd4536112019;p=citadel.git diff --git a/webcit/calendar.c b/webcit/calendar.c index 1185bfc22..f0f34ef84 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -175,7 +175,7 @@ void cal_process_object(StrBuf *Target, // screen name or email address safestrncpy(buf, ch + 7, sizeof(buf)); - striplt(buf); + string_trim(buf); StrEscAppend(Target, NULL, buf, 0, 0); StrBufAppendPrintf(Target, " "); @@ -683,11 +683,11 @@ void load_ical_object(long msgnum, int unread, if (!IsEmptyStr(bptr)) { if (!strncasecmp(bptr, "Content-type: ", 14)) { safestrncpy(msg4_content_type, &bptr[14], sizeof msg4_content_type); - striplt(msg4_content_type); + string_trim(msg4_content_type); } else if (!strncasecmp(bptr, "Content-transfer-encoding: ", 27)) { safestrncpy(msg4_content_encoding, &bptr[27], sizeof msg4_content_encoding); - striplt(msg4_content_type); + string_trim(msg4_content_type); } else if ((!strncasecmp(bptr, "Content-length: ", 16))) { msg4_content_length = atoi(&bptr[16]);