use slprintf()

This commit is contained in:
Dmitry Stogov 2007-11-01 11:49:27 +00:00
parent dba5f202f0
commit 73e8a773fa

View File

@ -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) {