From 9644bf74bd90ef5b9c016434408be1acaa311978 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 12 Aug 2001 09:18:31 +0000 Subject: it was half committed last time, thanks to Hasch@t-online.de (Juergen Hasch) for spotting that. (This used to be commit a2a4d4e6286c2127b6f8e32fc97b96dabd7cdb40) --- source3/web/cgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/web') diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 74e9969ff4..651cd3d8c3 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -87,7 +87,7 @@ static char *grab_line(FILE *f, int *cl) { char *ret = NULL; int i = 0; - int len = 1024; + int len = 0; while ((*cl)) { int c; @@ -96,7 +96,7 @@ static char *grab_line(FILE *f, int *cl) char *ret2; if (len == 0) len = 1024; else len *= 2; - ret2 = (char *)Realloc(ret, len*2); + ret2 = (char *)Realloc(ret, len); if (!ret2) return ret; ret = ret2; } -- cgit