summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-02-25 10:10:43 +0000
committerThies C. Arntzen <thies@php.net>2000-02-25 10:10:43 +0000
commit83d20ab305ec14f0a02d6889b2f96fb298be7277 (patch)
tree9c579d639ca53d3854ad569d7e67eab845877c96 /main/SAPI.c
parentc0b3d86d9139a7d03b51dc3d140a53293c961a43 (diff)
downloadphp-git-83d20ab305ec14f0a02d6889b2f96fb298be7277.tar.gz
fix obvious crash.
stig, in sgi-mode i still "only" get: (haven't touched my .ini file in ages - and don't plan to) X-Powered-By: PHP/4.0b5-dev Content-type: iso-8859-1 <<< where is text/html?
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 7de50cb951..f409583160 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -389,6 +389,7 @@ SAPI_API int sapi_send_headers()
sapi_header_struct default_header;
int len = SG(sapi_headers).default_content_type_size + sizeof("Content-type: ");
+ default_header.header = emalloc(len);
strcpy(default_header.header, "Content-type: ");
strlcat(default_header.header, SG(sapi_headers).default_content_type, len);
default_header.header[len - 1] = '\0';