diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 17:02:56 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 17:02:56 -0700 |
commit | 2700628e64939c9496f8ca532b7c188e5927d500 (patch) | |
tree | 6680308291954f95fc472487237a09454010c551 /csum-file.c | |
parent | 1f688557c0b4963d5e0b93ad5cddad31e5322709 (diff) | |
download | git-2700628e64939c9496f8ca532b7c188e5927d500.tar.gz |
csum-file: fix missing buf pointer update
This would create broken pack archives for anything nontrivial.
Diffstat (limited to 'csum-file.c')
-rw-r--r-- | csum-file.c | 1 |
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); |