From 9567e9fe71558967e2702154c42e8c2554233744 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Thu, 4 Jun 2009 21:21:27 +0000 Subject: [PATCH] * make shure our cached buffers aren't to big. --- webcit/subst.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.2