diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-09-09 00:32:40 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-09-09 00:32:40 +0000 |
commit | b03026402d6cbfdeb4757cb849d2057faf450993 (patch) | |
tree | 1da69bb4af9f363b61fe68ba9478ec5fb4f7c53a | |
parent | 415b1bb19b5ef8dc9c5603ff42947b2b6cbf425a (diff) | |
download | php-git-b03026402d6cbfdeb4757cb849d2057faf450993.tar.gz |
Fixed typo.
-rw-r--r-- | main/SAPI.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 289041f356..d1d6a5b204 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -261,6 +261,7 @@ SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC newtype = emalloc(newlen + 1); PHP_STRLCPY(newtype, *mimetype, newlen + 1, len); strlcat(newtype, ";charset=", newlen + 1); + strlcat(newtype, charset, newlen + 1); if (*mimetype != NULL) { efree(*mimetype); } @@ -460,8 +461,6 @@ SAPI_API int sapi_add_header_ex(char *header_line, uint header_line_len, zend_bo strlcat(newheader, mimetype, newlen); sapi_header.header = newheader; sapi_header.header_len = newlen - 1; - colon_offset = strchr(newheader, ':'); - *colon_offset = '\0'; efree(header_line); } |