diff options
author | Stefan Fritsch <sf@apache.org> | 2012-04-26 23:44:51 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2012-04-26 23:44:51 +0200 |
commit | fe4f92509b95f01f61f951e256fb2f3fb3855f3e (patch) | |
tree | 157864f66563bf4eb6fa95649f46313e3dc47702 /modules/generators/mod_cgid.c | |
parent | Syntax updates for mod_l*.xml (diff) | |
download | apache2-fe4f92509b95f01f61f951e256fb2f3fb3855f3e.tar.xz apache2-fe4f92509b95f01f61f951e256fb2f3fb3855f3e.zip |
Replace use of apr_file_write() with apr_file_write_full() to prevent
incomplete writes.
Add comments in some places where error handling/logging is missing.
PR: 53131.
Submitted by: Nicolas Viennot <apache viennot biz>, Stefan Fritsch
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331110 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators/mod_cgid.c')
-rw-r--r-- | modules/generators/mod_cgid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 7a6540168c..5cf7cf5895 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -1155,7 +1155,7 @@ static int log_script(request_rec *r, cgid_server_conf * conf, int ret, apr_file_puts("%stdout\n", f); first = 0; } - apr_file_write(f, buf, &len); + apr_file_write_full(f, buf, len, NULL); apr_file_puts("\n", f); } |