]> code.citadel.org Git - citadel.git/blobdiff - webcit/messages.c
* load_mimepart() was including protocol chatter in its data buffer. Fixed.
[citadel.git] / webcit / messages.c
index dde57cc4a2f2761d53818c81cea621958ef895cb..97d7f02fb404ccff6305882e528a8b9b93bfaac8 100644 (file)
@@ -426,7 +426,7 @@ int load_msg_ptrs(const char *servcmd, int with_headers)
        long len;
        int n;
        int skipit;
-       const char *Ptr;
+       const char *Ptr = NULL;
 
        if (WCC->summ != NULL) {
                DeleteHash(&WCC->summ);
@@ -1626,7 +1626,8 @@ StrBuf *load_mimepart(long msgnum, char *partnum)
        if (GetServerStatus(Buf, NULL) == 6) {
                StrBufCutLeft(Buf, 4);
                bytes = StrBufExtract_long(Buf, 0, '|');
-
+               FreeStrBuf(&Buf);
+               Buf = NewStrBuf();
                StrBuf_ServGetBLOBBuffered(Buf, bytes);
                return(Buf);
        }