summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorJ Wyman <jeremy.wyman@microsoft.com>2015-05-11 10:19:25 -0700
committerJ Wyman <jeremy.wyman@microsoft.com>2015-05-11 10:32:08 -0700
commit7dd2253826a027c05f5562a70f21ae396ea38c6f (patch)
tree15e800c3debb985affddeb7f9652a371559016ed /src/fileops.c
parent9cdd657887d5fc7cf5a5819e60900d67513ca1ff (diff)
downloadlibgit2-7dd2253826a027c05f5562a70f21ae396ea38c6f.tar.gz
centralizing all IO buffer size values
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c
index 993224686..0587c446f 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -689,7 +689,7 @@ int git_futils_fake_symlink(const char *old, const char *new)
static int cp_by_fd(int ifd, int ofd, bool close_fd_when_done)
{
int error = 0;
- char buffer[4096];
+ char buffer[FILEIO_BUFSIZE];
ssize_t len = 0;
while (!error && (len = p_read(ifd, buffer, sizeof(buffer))) > 0)