]> granicus.if.org Git - php/commitdiff
MF53: sprintf -> snprintf -> slprintf (Marcus, Ilia: Thanks for not committing random...
authorJani Taskinen <jani@php.net>
Sat, 14 Nov 2009 22:42:08 +0000 (22:42 +0000)
committerJani Taskinen <jani@php.net>
Sat, 14 Nov 2009 22:42:08 +0000 (22:42 +0000)
main/SAPI.c

index 47bd398f6445bbdb26bf3ed4852be6b609112a8c..a5a304689f1fe23b620c5e4b20301657f784cf2e 100644 (file)
@@ -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);
                        }