summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-09-08 01:06:29 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-09-08 01:06:29 +0000
commit71fb0299d1d8c498e2f26435c836ccd36a299b0a (patch)
tree3bcedec6dce91e01031a70912fe10c3c5334f570 /main/SAPI.c
parentb6c2275353d3269f255d7eaabc0d1049743fe5dc (diff)
downloadphp-git-71fb0299d1d8c498e2f26435c836ccd36a299b0a.tar.gz
Added missing charset.
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 910e362cbe..a2a2129ecd 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -266,6 +266,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);
efree(*mimetype);
*mimetype = newtype;
return newlen;