From a982eb226721b12ea332fe9be50f45dc96dfec5f Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Mon, 29 May 2000 15:07:19 +0000 Subject: [PATCH] `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. --- ext/session/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.50.1