cvs: php-src /sapi/cgi cgi_main.c
| From: | Dmitry Stogov | Date: | Thu, 01 Nov 2007 11:49:28 +0000 |
| Subject: | cvs: php-src /sapi/cgi cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-46862@lists.php.net to get a copy of this message | ||
dmitry Thu Nov 1 11:49:28 2007 UTC
Modified files:
/php-src/sapi/cgi cgi_main.c
Log:
use slprintf()
http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.344&r2=1.345&diff_format=u
Index: php-src/sapi/cgi/cgi_main.c
diff -u php-src/sapi/cgi/cgi_main.c:1.344 php-src/sapi/cgi/cgi_main.c:1.345
--- php-src/sapi/cgi/cgi_main.c:1.344 Thu Nov 1 11:13:06 2007
+++ php-src/sapi/cgi/cgi_main.c Thu Nov 1 11:49:27 2007
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cgi_main.c,v 1.344 2007/11/01 11:13:06 dmitry Exp $ */
+/* $Id: cgi_main.c,v 1.345 2007/11/01 11:49:27 dmitry Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -394,7 +394,7 @@
(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) {