1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Doc update.

This commit is contained in:
hniksic 2003-10-04 15:51:00 -07:00
parent 254291cc03
commit 533412b55c

View File

@ -1081,7 +1081,7 @@ cookie_jar_generate_cookie_header (struct cookie_jar *jar, const char *host,
int port, const char *path, int port, const char *path,
int connection_secure_p) int connection_secure_p)
{ {
struct cookie *chain_default_store[20]; struct cookie *chain_default_store[5];
struct cookie **chains = chain_default_store; struct cookie **chains = chain_default_store;
int chain_store_size = countof (chain_default_store); int chain_store_size = countof (chain_default_store);
int chain_count; int chain_count;
@ -1097,10 +1097,9 @@ cookie_jar_generate_cookie_header (struct cookie_jar *jar, const char *host,
chain_count = find_matching_chains (jar, host, chains, chain_store_size); chain_count = find_matching_chains (jar, host, chains, chain_store_size);
if (chain_count > chain_store_size) if (chain_count > chain_store_size)
{ {
/* It's extremely unlikely that more than 20 chains will ever /* It's unlikely that more than 5 chains will ever match. But
match. But since find_matching_chains reports the exact size since find_matching_chains reports the exact size it needs,
it needs, it's easy to not have the limitation, so we it's easy to not have the limitation, so we don't. */
don't. */
chains = alloca (chain_count * sizeof (struct cookie *)); chains = alloca (chain_count * sizeof (struct cookie *));
chain_store_size = chain_count; chain_store_size = chain_count;
goto again; goto again;