diff options
author | Simo Sorce <idra@samba.org> | 2001-08-12 09:18:31 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-08-12 09:18:31 +0000 |
commit | 9644bf74bd90ef5b9c016434408be1acaa311978 (patch) | |
tree | bc80f7ae61fdd02fab20e0a516d206e327ae8141 /source3 | |
parent | 8d5916d5fa4aea02cd84d3b2d0793ead9455a50a (diff) | |
download | samba-9644bf74bd90ef5b9c016434408be1acaa311978.tar.gz samba-9644bf74bd90ef5b9c016434408be1acaa311978.tar.bz2 samba-9644bf74bd90ef5b9c016434408be1acaa311978.zip |
it was half committed last time,
thanks to Hasch@t-online.de (Juergen Hasch) for spotting that.
(This used to be commit a2a4d4e6286c2127b6f8e32fc97b96dabd7cdb40)
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; } |