fix format warnings, closes #85
[m6w6/ext-http] / src / php_http_env.c
index 21bd89ab73d504a51a7c08ffe0a3dfec095bd7ca..4afcd312b45d16b1ac011896f1646bed01af14d8 100644 (file)
@@ -501,7 +501,7 @@ ZEND_RESULT_CODE php_http_env_set_response_header_value(long http_code, const ch
                                return FAILURE;
                        }
                        h.response_code = http_code;
-                       h.line_len = spprintf(&h.line, 0, "%.*s: %.*s", (int) name_len, name_str, data->len, data->val);
+                       h.line_len = spprintf(&h.line, 0, "%s: %s", name_str, data->val);
 
                        ret = sapi_header_op(replace ? SAPI_HEADER_REPLACE : SAPI_HEADER_ADD, (void *) &h);