summaryrefslogtreecommitdiff
path: root/src/odb.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-02-01 06:22:36 -0800
committerEdward Thomson <ethomson@edwardthomson.com>2018-02-09 10:58:22 +0000
commit619f61a8f110de71422d62e14e22c84865c3091c (patch)
treecd2f7b43b95a9406f7c2bfb331753099c7492555 /src/odb.h
parent7ec7aa4a7396c80bfe557590bfae83b7a51458d3 (diff)
downloadlibgit2-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb.h b/src/odb.h
index 6845b22f1..b354108e7 100644
--- a/src/odb.h
+++ b/src/odb.h
@@ -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,