diff options
Diffstat (limited to 'src/hashsig.c')
-rw-r--r-- | src/hashsig.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hashsig.c b/src/hashsig.c index a9cd8fa53..60649fd11 100644 --- a/src/hashsig.c +++ b/src/hashsig.c @@ -266,7 +266,8 @@ static git_hashsig *hashsig_alloc(git_hashsig_option_t opts) int git_hashsig_create( git_hashsig **out, - const git_buf *buf, + const char *buf, + size_t buflen, git_hashsig_option_t opts) { int error; @@ -274,7 +275,7 @@ int git_hashsig_create( git_hashsig *sig = hashsig_alloc(opts); GITERR_CHECK_ALLOC(sig); - error = hashsig_add_hashes(sig, buf->ptr, buf->size, &prog); + error = hashsig_add_hashes(sig, buf, buflen, &prog); if (!error) error = hashsig_finalize_hashes(sig); |