if (StrLength(Mime->Data) > 0) {
struct vnote *v;
StrBuf *Buf;
+ char *vcard;
Buf = NewStrBuf();
- v = vnote_new_from_str(ChrPtr(Mime->Data));
+ vcard = SmashStrBuf(&Mime->Data);
+ v = vnote_new_from_str(vcard);
+ free (vcard);
if (v) {
WCTemplputParams TP;
Buf, &TP);
vnote_free(v);
-
- FreeStrBuf(&Mime->Data);
Mime->Data = Buf;
}
else
- FlushStrBuf(Mime->Data);
+ Mime->Data = NewStrBuf();
}
}