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) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to