cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: stack overflow

From: Nielsen Linus <Linus.Nielsen_at_elema.siemens.se>
Date: Tue, 11 Sep 2001 09:04:17 +0200

> > So far i found that Transfer() has a buffer, scratch of
> size 1024*50*2
> > (100k).
>
> Why *2?

The declaration is:

          char scratch[BUFSIZE * 2];

It seems that it is doubled because the translation of LineFeed
to CR+LF *might* produce data that is twice as big as the original.

/Linus
Received on 2001-09-11