]> granicus.if.org Git - php/commitdiff
fix obvious crash.
authorThies C. Arntzen <thies@php.net>
Fri, 25 Feb 2000 10:10:43 +0000 (10:10 +0000)
committerThies C. Arntzen <thies@php.net>
Fri, 25 Feb 2000 10:10:43 +0000 (10:10 +0000)
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?

main/SAPI.c

index 7de50cb951dd8fa126b4e1c5f40eb30435426445..f409583160c3a9dfb47f164d7396248e737a3852 100644 (file)
@@ -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';