summaryrefslogtreecommitdiff
path: root/src/filebuf.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/filebuf.c
parent9cdd657887d5fc7cf5a5819e60900d67513ca1ff (diff)
downloadlibgit2-7dd2253826a027c05f5562a70f21ae396ea38c6f.tar.gz
centralizing all IO buffer size values
Diffstat (limited to 'src/filebuf.c')
-rw-r--r--src/filebuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filebuf.c b/src/filebuf.c
index a35b59cf0..848ac343b 100644
--- a/src/filebuf.c
+++ b/src/filebuf.c
@@ -68,7 +68,7 @@ static int lock_file(git_filebuf *file, int flags, mode_t mode)
if ((flags & GIT_FILEBUF_APPEND) && git_path_exists(file->path_original) == true) {
git_file source;
- char buffer[2048];
+ char buffer[FILEIO_BUFSIZE];
ssize_t read_bytes;
source = p_open(file->path_original, O_RDONLY);