mirror of
https://github.com/php/php-src.git
synced 2025-01-11 05:24:49 +08:00
use slprintf()
This commit is contained in:
parent
dba5f202f0
commit
73e8a773fa
@ -394,7 +394,7 @@ static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC)
|
||||
(s - SG(sapi_headers).http_status_line) >= 5 &&
|
||||
strncasecmp(SG(sapi_headers).http_status_line, "HTTP/", 5) == 0
|
||||
) {
|
||||
len = sprintf(buf, "Status:%s\r\n", s);
|
||||
len = slprintf(buf, sizeof(buf), "Status:%s\r\n", s);
|
||||
} else {
|
||||
h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos);
|
||||
while (h) {
|
||||
|
Loading…
Reference in New Issue
Block a user