cURL / Mailing Lists / curl-library / Single Mail

curl-library

PATH_MAX

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 18 Jun 2007 13:14:28 +0200 (CEST)

Hi James,

The PATH_MAX usage in lib/urldata.h still breaks builds and I hesitate to
release until we have this sorted.

Also, I've taken a look at this and I think we should reconsider the use of
this define:

It is by default set to 4096 on many systems, and having two variables of that
size by default in a struct is needlessly gonna add some 8K of memory use for
every single connection (for libcurls with SSH-capabilities enabled). I think
we should rather malloc-on-demand instead.

I think the asprintf() function should come handy for this.

So what do you think about this?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-06-18