X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=textclient%2Fcitadel_ipc.c;h=f4a5695b8ac6bc4950b0ea9b88d08176401aadfe;hb=a34ab2fe2c99fda491eb8ae91371774a32c2612e;hp=a2f583c6e909b77348eaf2af1de18ec8e7e2b880;hpb=039ccdbb1a9d4124f6c1a03c29cbdd4536112019;p=citadel.git diff --git a/textclient/citadel_ipc.c b/textclient/citadel_ipc.c index a2f583c6e..f4a5695b8 100644 --- a/textclient/citadel_ipc.c +++ b/textclient/citadel_ipc.c @@ -671,7 +671,7 @@ int CtdlIPCGetSingleMessage(CtdlIPC * ipc, long msgnum, int headers, int as_mime if (!strncasecmp(bbb, "Content-type:", 13)) { extract_token(mret[0]->content_type, bbb, 0, '\n', sizeof mret[0]->content_type); strcpy(mret[0]->content_type, &mret[0]->content_type[13]); - striplt(mret[0]->content_type); + string_trim(mret[0]->content_type); /* strip out ";charset=" portion. FIXME do something with * the charset (like... convert it) instead of just throwing @@ -685,12 +685,12 @@ int CtdlIPCGetSingleMessage(CtdlIPC * ipc, long msgnum, int headers, int as_mime if (!strncasecmp(bbb, "X-Citadel-MSG4-Partnum:", 23)) { extract_token(mret[0]->mime_chosen, bbb, 0, '\n', sizeof mret[0]->mime_chosen); strcpy(mret[0]->mime_chosen, &mret[0]->mime_chosen[23]); - striplt(mret[0]->mime_chosen); + string_trim(mret[0]->mime_chosen); } if (!strncasecmp(bbb, "Content-transfer-encoding:", 26)) { extract_token(encoding, bbb, 0, '\n', sizeof encoding); strcpy(encoding, &encoding[26]); - striplt(encoding); + string_trim(encoding); } remove_token(bbb, 0, '\n'); } while ((bbb[0] != 0) && (bbb[0] != '\n'));