csum-file: fix missing buf pointer update
This would create broken pack archives for anything nontrivial.
This commit is contained in:
parent
1f688557c0
commit
2700628e64
@ -58,6 +58,7 @@ int sha1write(struct sha1file *f, void *buf, unsigned int count)
|
|||||||
memcpy(f->buffer + offset, buf, nr);
|
memcpy(f->buffer + offset, buf, nr);
|
||||||
count -= nr;
|
count -= nr;
|
||||||
offset += nr;
|
offset += nr;
|
||||||
|
buf += nr;
|
||||||
left -= nr;
|
left -= nr;
|
||||||
if (!left) {
|
if (!left) {
|
||||||
SHA1_Update(&f->ctx, f->buffer, offset);
|
SHA1_Update(&f->ctx, f->buffer, offset);
|
||||||
|
Loading…
Reference in New Issue
Block a user