diff options
author | Russell Belfer <rb@github.com> | 2014-05-16 11:08:19 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-05-16 11:08:19 -0700 |
commit | d0f00de4d8e2173a3132f0024e74f5049638ce2f (patch) | |
tree | d06af55df10b2e31c19599e1fd96c65de3f2ebdd /src/blob.c | |
parent | 8e1b5a8dc650c25e818ab7337833bd4d0d45a46e (diff) | |
download | libgit2-d0f00de4d8e2173a3132f0024e74f5049638ce2f.tar.gz |
Increase binary detection len to 8k
Diffstat (limited to 'src/blob.c')
-rw-r--r-- | src/blob.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c index ab7dec67f..30d5b705b 100644 --- a/src/blob.c +++ b/src/blob.c @@ -334,7 +334,8 @@ int git_blob_is_binary(const git_blob *blob) assert(blob); content.ptr = blob->odb_object->buffer; - content.size = min(blob->odb_object->cached.size, 4000); + content.size = + min(blob->odb_object->cached.size, GIT_FILTER_BYTES_TO_CHECK_NUL); content.asize = 0; return git_buf_text_is_binary(&content); |