From 28c945d44d207caaddabfc2f5e3e6f525b7db9ae Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Sat, 14 Nov 2009 22:42:08 +0000 Subject: [PATCH] MF53: sprintf -> snprintf -> slprintf (Marcus, Ilia: Thanks for not committing random stuff to HEAD) --- main/SAPI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/SAPI.c b/main/SAPI.c index 47bd398f64..a5a304689f 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -773,7 +773,7 @@ SAPI_API int sapi_send_headers(TSRMLS_D) http_status_line.header_len = strlen(SG(sapi_headers).http_status_line); } else { http_status_line.header = buf; - http_status_line.header_len = sprintf(buf, "HTTP/1.0 %d X", SG(sapi_headers).http_response_code); + http_status_line.header_len = slprintf(buf, sizeof(buf), "HTTP/1.0 %d X", SG(sapi_headers).http_response_code); } sapi_module.send_header(&http_status_line, SG(server_context) TSRMLS_CC); } -- 2.40.0