diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-02-01 06:22:36 -0800 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-02-09 10:58:22 +0000 |
commit | 619f61a8f110de71422d62e14e22c84865c3091c (patch) | |
tree | cd2f7b43b95a9406f7c2bfb331753099c7492555 /src/odb.h | |
parent | 7ec7aa4a7396c80bfe557590bfae83b7a51458d3 (diff) | |
download | libgit2-619f61a8f110de71422d62e14e22c84865c3091c.tar.gz |
odb: error when we can't create object header
Return an error to the caller when we can't create an object header for
some reason (printf failure) instead of simply asserting.
Diffstat (limited to 'src/odb.h')
-rw-r--r-- | src/odb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -70,7 +70,7 @@ int git_odb__hashobj(git_oid *id, git_rawobj *obj); /* * Format the object header such as it would appear in the on-disk object */ -int git_odb__format_object_header(char *hdr, size_t n, git_off_t obj_len, git_otype obj_type); +int git_odb__format_object_header(size_t *out_len, char *hdr, size_t hdr_size, git_off_t obj_len, git_otype obj_type); /* * Hash an open file descriptor. * This is a performance call when the contents of a fd need to be hashed, |