summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--csum-file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/csum-file.c b/csum-file.c
index 9f9553ae03..3ab65b7515 100644
--- a/csum-file.c
+++ b/csum-file.c
@@ -58,6 +58,7 @@ int sha1write(struct sha1file *f, void *buf, unsigned int count)
memcpy(f->buffer + offset, buf, nr);
count -= nr;
offset += nr;
+ buf += nr;
left -= nr;
if (!left) {
SHA1_Update(&f->ctx, f->buffer, offset);