summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-29 15:07:19 +0000
committerSascha Schumann <sas@php.net>2000-05-29 15:07:19 +0000
commita982eb226721b12ea332fe9be50f45dc96dfec5f (patch)
tree5c6823c1c0c06ffda8f38efff9770574a9c1bad6 /ext
parent124fe30f0382d87e7f52e02163d339f6ef7c868e (diff)
downloadphp-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.c2
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)