* set an application specific prefered Buffer size in places where debugging shows...
[citadel.git] / webcit / serv_func.c
index 8ad3b6dfc9bf85a789da2f9cbd5bb5dd98c3a9cb..31be4867cf51141eb9486b9c649da6ed52209d10 100644 (file)
@@ -136,7 +136,7 @@ int GetConnected (void)
        wcsession *WCC = WC;
 
        if (WCC->ReadBuf == NULL)
-               WCC->ReadBuf = NewStrBuf();
+               WCC->ReadBuf = NewStrBufPlain(NULL, SIZ * 4);
        if (is_uds) /* unix domain socket */
                WCC->serv_sock = uds_connectsock(serv_sock_name);
        else        /* tcp socket */
@@ -264,9 +264,9 @@ void FmOut(StrBuf *Target, char *align, StrBuf *Source)
 {
        const char *ptr, *pte;
        const char *BufPtr = NULL;
-       StrBuf *Line = NewStrBuf();
-       StrBuf *Line1 = NewStrBuf();
-       StrBuf *Line2 = NewStrBuf();
+       StrBuf *Line = NewStrBufPlain(NULL, SIZ);
+       StrBuf *Line1 = NewStrBufPlain(NULL, SIZ);
+       StrBuf *Line2 = NewStrBufPlain(NULL, SIZ);
        int bn = 0;
        int bq = 0;
        int i, n, done = 0;