From: Wilfried Göesgens Date: Thu, 4 Jun 2009 21:21:27 +0000 (+0000) Subject: * make shure our cached buffers aren't to big. X-Git-Tag: v7.86~1099 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=9567e9fe71558967e2702154c42e8c2554233744;p=citadel.git * make shure our cached buffers aren't to big. --- diff --git a/webcit/subst.c b/webcit/subst.c index 6842a99b9..8b69b26e0 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -1436,6 +1436,7 @@ void *load_template(StrBuf *filename, StrBuf *Key, HashList *PutThere) close(fd); Line = 0; + StrBufShrinkToFit(NewTemplate->Data, 1); pS = pch = ChrPtr(NewTemplate->Data); pE = pS + StrLength(NewTemplate->Data); while (pch < pE) {