From 73e8a773fa62b6a361d2896a9b9e7dec242a2758 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 1 Nov 2007 11:49:27 +0000 Subject: [PATCH] use slprintf() --- sapi/cgi/cgi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 8602046c05..1f87975688 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -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) { -- 2.50.1