diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-01-25 00:26:51 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-01-25 00:26:51 +0000 |
commit | 094a5717b1b0b465ec847d8606261398a782c478 (patch) | |
tree | f026c99d80b20de5dd0bf10158fd38ca1ffba0f4 /ext/standard/head.c | |
parent | 93951f1931a7bdc9278d41865c8403e5db488e7c (diff) | |
download | php-git-094a5717b1b0b465ec847d8606261398a782c478.tar.gz |
Eliminate strcat() and strcpy()
Diffstat (limited to 'ext/standard/head.c')
-rw-r--r-- | ext/standard/head.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c index 370558f629..af945ff8e0 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -109,7 +109,7 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t } else { sprintf(cookie, "Set-Cookie: %s=%s", name, value ? encoded_value : ""); if (expires > 0) { - strcat(cookie, "; expires="); + strlcat(cookie, "; expires=", len + 100); dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, expires, 0 TSRMLS_CC); strlcat(cookie, dt, len + 100); efree(dt); |