1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-19 02:26:08 +02:00

csum-file: fix missing buf pointer update

This would create broken pack archives for anything nontrivial.
This commit is contained in:
Linus Torvalds 2005-06-27 17:02:56 -07:00
parent 1f688557c0
commit 2700628e64

View File

@ -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);