X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;ds=sidebyside;f=webcit%2Fwebcit.c;h=f18493333e815883f94733eec090cd6b69580514;hb=016d4c328531362f6af77193507daec7e3c70de3;hp=a04d78c3fb44db78d61020b25187ccc6514fff19;hpb=79eb9220e8c19b7625f687c013f6c22b57ebbd1e;p=citadel.git diff --git a/webcit/webcit.c b/webcit/webcit.c index a04d78c3f..f18493333 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -506,7 +506,7 @@ void ReadPostData(void) wcsession *WCC = WC; StrBuf *content = NULL; - content = NewStrBuf(); + content = NewStrBufPlain(NULL, WCC->Hdr->HR.ContentLength + 256); StrBufPrintf(content, "Content-type: %s\n" @@ -792,8 +792,8 @@ SessionNewModule_WEBCIT (wcsession *sess) { sess->ImportantMsg = NewStrBuf(); - sess->WBuf = NewStrBuf(); - sess->HBuf = NewStrBuf(); + sess->WBuf = NewStrBufPlain(NULL, SIZ * 4); + sess->HBuf = NewStrBufPlain(NULL, SIZ / 4); } void