]> git.pld-linux.org Git - packages/php.git/blame - php-fcgi-error_log-no-newlines.patch
This commit was manufactured by cvs2git to create branch 'DEVEL'.
[packages/php.git] / php-fcgi-error_log-no-newlines.patch
CommitLineData
c0240cb1 1--- ./sapi/cgi/cgi_main.c~ 2007-08-09 02:51:57.000000000 +0300
2+++ ./sapi/cgi/cgi_main.c 2007-09-05 20:54:19.390089070 +0300
3@@ -558,12 +558,7 @@
4 request = (fcgi_request*) SG(server_context);
5 if (request) {
6 int len = strlen(message);
7- char *buf = malloc(len+2);
8-
9- memcpy(buf, message, len);
10- memcpy(buf + len, "\n", sizeof("\n"));
11- fcgi_write(request, FCGI_STDERR, buf, len+1);
12- free(buf);
13+ fcgi_write(request, FCGI_STDERR, message, len);
14 } else {
15 fprintf(stderr, "%s\n", message);
16 }
This page took 0.031402 seconds and 4 git commands to generate.