diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/web/cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |