From: Sascha Schumann Date: Mon, 29 May 2000 15:07:19 +0000 (+0000) Subject: `len' is not the actual length of the string, but the possible maximum X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a982eb226721b12ea332fe9be50f45dc96dfec5f;p=php `len' is not the actual length of the string, but the possible maximum length. This fixes a couple of problems, like not setting the cookie path correctly. --- diff --git a/ext/session/session.c b/ext/session/session.c index 36907fbd66..0f0d4ae809 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -664,7 +664,7 @@ static void _php_session_send_cookie(PSLS_D) strcat(cookie, PS(cookie_domain)); } - sapi_add_header(cookie, len, 0); + sapi_add_header(cookie, strlen(cookie), 0); } static ps_module *_php_find_ps_module(char *name PSLS_DC)