apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r651709 - /apr/apr/branches/0.9.x/file_io/unix/copy.c
Date Fri, 25 Apr 2008 22:03:57 GMT
Author: bojan
Date: Fri Apr 25 15:03:56 2008
New Revision: 651709

URL: http://svn.apache.org/viewvc?rev=651709&view=rev
Log:
Backport r651174 and 651704 from the trunk
Make copy buffer bigger
PR #44193

Modified:
    apr/apr/branches/0.9.x/file_io/unix/copy.c

Modified: apr/apr/branches/0.9.x/file_io/unix/copy.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/file_io/unix/copy.c?rev=651709&r1=651708&r2=651709&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/file_io/unix/copy.c (original)
+++ apr/apr/branches/0.9.x/file_io/unix/copy.c Fri Apr 25 15:03:56 2008
@@ -65,7 +65,8 @@
 
     /* Copy bytes till the cows come home. */
     while (1) {
-        char buf[BUFSIZ];
+        char buf[BUFSIZ > APR_FILE_DEFAULT_BUFSIZE ? BUFSIZ
+                                                   : APR_FILE_DEFAULT_BUFSIZE];
         apr_size_t bytes_this_time = sizeof(buf);
         apr_status_t read_err;
         apr_status_t write_err;



Mime
View raw message