Missing bit of the previous patch.

This commit is contained in:
Ilia Alshanetsky 2005-07-08 16:17:04 +00:00
parent 046635075b
commit bf020f87e1

View File

@ -110,7 +110,7 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t
sprintf(cookie, "Set-Cookie: %s=%s", name, value ? encoded_value : "");
if (expires > 0) {
strcat(cookie, "; expires=");
dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, t, 0);
dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, expires, 0);
strcat(cookie, dt);
efree(dt);
}