From: Dmitry Stogov Date: Thu, 1 Nov 2007 11:49:27 +0000 (+0000) Subject: use slprintf() X-Git-Tag: RELEASE_2_0_0a1~1512 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73e8a773fa62b6a361d2896a9b9e7dec242a2758;p=php use slprintf() --- 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) {