summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/main.c b/main/main.c
index a745601c47..cfc39a5a0d 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1124,16 +1124,16 @@ PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_
if (SG(request_info).query_string && SG(request_info).query_string[0]=='=') {
if (!strcmp(SG(request_info).query_string+1, "PHPE9568F34-D428-11d2-A769-00AA001ACF42")) {
- char *header_line = estrndup("Content-type: image/gif", sizeof("Content-type: image/gif")-1);
+ char *header_line = estrndup(CONTEXT_TYPE_IMAGE_GIF, sizeof(CONTEXT_TYPE_IMAGE_GIF));
- php4i_add_header_information(header_line);
+ php4i_add_header_information(header_line, sizeof(CONTEXT_TYPE_IMAGE_GIF));
PHPWRITE(php4_logo, sizeof(php4_logo));
efree(header_line);
return;
} else if (!strcmp(SG(request_info).query_string+1, "PHPE9568F35-D428-11d2-A769-00AA001ACF42")) {
- char *header_line = estrndup("Content-type: image/gif", sizeof("Content-type: image/gif")-1);
+ char *header_line = estrndup(CONTEXT_TYPE_IMAGE_GIF, sizeof(CONTEXT_TYPE_IMAGE_GIF));
- php4i_add_header_information(header_line);
+ php4i_add_header_information(header_line, sizeof(CONTEXT_TYPE_IMAGE_GIF));
PHPWRITE(zendtech_logo, sizeof(zendtech_logo));
efree(header_line);
return;