diff options
author | Neal H. Walfield <[email protected]> | 2016-02-23 21:39:58 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2016-02-23 21:39:58 +0000 |
commit | 75861b663bbb37214143c2ff7b1b4d1d10ba2657 (patch) | |
tree | 7cf9ed0c1b8833ef0d3b21cb2089e897b63d0292 | |
parent | common: Improve a function's documentation and comments. (diff) | |
download | gnupg-75861b663bbb37214143c2ff7b1b4d1d10ba2657.tar.gz gnupg-75861b663bbb37214143c2ff7b1b4d1d10ba2657.zip |
common: Reduce buffer size.
* common/iobuf.c (iobuf_copy): Change buffer size from 1 MB to 32 KB.
--
Change suggested by Werner based on the observation that other buffers
are of a similar size.
Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/iobuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/iobuf.c b/common/iobuf.c index 9816d5590..bd1c30fae 100644 --- a/common/iobuf.c +++ b/common/iobuf.c @@ -2227,8 +2227,8 @@ size_t iobuf_copy (iobuf_t dest, iobuf_t source) { char *temp; - /* Use a 1 MB buffer. */ - const size_t temp_size = 1024 * 1024; + /* Use a 32 KB buffer. */ + const size_t temp_size = 32 * 1024; size_t nread; size_t nwrote = 0; |