jani Thu Jun 4 11:47:51 2009 UTC Modified files: /php-src/sapi/cgi cgi_main.c Log: MFB: snprintf -> slprintf (Ilia) http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.381&r2=1.382&diff_format=u Index: php-src/sapi/cgi/cgi_main.c diff -u php-src/sapi/cgi/cgi_main.c:1.381 php-src/sapi/cgi/cgi_main.c:1.382 --- php-src/sapi/cgi/cgi_main.c:1.381 Thu May 28 20:47:01 2009 +++ php-src/sapi/cgi/cgi_main.c Thu Jun 4 11:47:51 2009 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cgi_main.c,v 1.381 2009/05/28 20:47:01 kalle Exp $ */ +/* $Id: cgi_main.c,v 1.382 2009/06/04 11:47:51 jani Exp $ */ #include "php.h" #include "php_globals.h" @@ -398,7 +398,7 @@ if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) { char *s; - len = snprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line); + len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line); if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) { response_status = atoi((s + 1)); } @@ -456,7 +456,7 @@ while (h) { /* prevent CRLFCRLF */ if (h->header_len) { - if (h->header_len > sizeof("Status:")-1 && + if (h->header_len > sizeof("Status:")-1 && strncasecmp(h->header, "Status:", sizeof("Status:")-1) == 0 ) { if (!ignore_status) { @@ -565,13 +565,13 @@ #endif #if !HAVE_SETENV if (value) { - len = snprintf(buf, len - 1, "%s=%s", name, value); + len = slprintf(buf, len - 1, "%s=%s", name, value); putenv(buf); } #endif #if !HAVE_UNSETENV if (!value) { - len = snprintf(buf, len - 1, "%s=", name); + len = slprintf(buf, len - 1, "%s=", name); putenv(buf); } #endif
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php