svn: /php/php-src/trunk/main/ SAPI.c

From: Date: Sat, 14 Nov 2009 22:42:08 +0000
Subject: svn: /php/php-src/trunk/main/ SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-60912@lists.php.net to get a copy of this message
jani Sat, 14 Nov 2009 22:42:08 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290761 Log: MF53: sprintf -> snprintf -> slprintf (Marcus, Ilia: Thanks for not committing random stuff to HEAD) Changed paths: U php/php-src/trunk/main/SAPI.c Modified: php/php-src/trunk/main/SAPI.c =================================================================== --- php/php-src/trunk/main/SAPI.c 2009-11-14 22:05:01 UTC (rev 290760) +++ php/php-src/trunk/main/SAPI.c 2009-11-14 22:42:08 UTC (rev 290761) @@ -773,7 +773,7 @@ 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); }

« previous php.cvs (#60912) next »