summaryrefslogtreecommitdiff
path: root/src/odb.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/odb.c
parent9cdd657887d5fc7cf5a5819e60900d67513ca1ff (diff)
downloadlibgit2-7dd2253826a027c05f5562a70f21ae396ea38c6f.tar.gz
centralizing all IO buffer size values
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index b1d606b4d..c3ae15a6a 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -142,7 +142,7 @@ void git_odb_object_free(git_odb_object *object)
int git_odb__hashfd(git_oid *out, git_file fd, size_t size, git_otype type)
{
int hdr_len;
- char hdr[64], buffer[2048];
+ char hdr[64], buffer[FILEIO_BUFSIZE];
git_hash_ctx ctx;
ssize_t read_len = 0;
int error = 0;