diff options
author | Sascha Schumann <sas@php.net> | 2000-05-29 15:07:19 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-05-29 15:07:19 +0000 |
commit | a982eb226721b12ea332fe9be50f45dc96dfec5f (patch) | |
tree | 5c6823c1c0c06ffda8f38efff9770574a9c1bad6 /ext | |
parent | 124fe30f0382d87e7f52e02163d339f6ef7c868e (diff) | |
download | php-git-a982eb226721b12ea332fe9be50f45dc96dfec5f.tar.gz |
`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.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/session/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |