diff options
author | Bojan Smojver <bojan@apache.org> | 2008-04-25 22:03:46 +0000 |
---|---|---|
committer | Bojan Smojver <bojan@apache.org> | 2008-04-25 22:03:46 +0000 |
commit | 7360b77a9f20c0e361e5982802178183a8a54866 (patch) | |
tree | edb3bc3889d3b2837e35829e0678f91355996684 | |
parent | 5200c202137b2649cabb7007f72aad2d866dee91 (diff) | |
download | apr-7360b77a9f20c0e361e5982802178183a8a54866.tar.gz |
Backport r651174 and 651704 from the trunk
Make copy buffer bigger
PR #44193
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.2.x@651708 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | file_io/unix/copy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/file_io/unix/copy.c b/file_io/unix/copy.c index 113a1081b..c0d8021eb 100644 --- a/file_io/unix/copy.c +++ b/file_io/unix/copy.c @@ -54,7 +54,8 @@ static apr_status_t apr_file_transfer_contents(const char *from_path, /* 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; |