summaryrefslogtreecommitdiff
path: root/csum-file.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 00:02:56 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 00:02:56 (GMT)
commit2700628e64939c9496f8ca532b7c188e5927d500 (patch)
tree6680308291954f95fc472487237a09454010c551 /csum-file.c
parent1f688557c0b4963d5e0b93ad5cddad31e5322709 (diff)
downloadgit-2700628e64939c9496f8ca532b7c188e5927d500.zip
git-2700628e64939c9496f8ca532b7c188e5927d500.tar.gz
git-2700628e64939c9496f8ca532b7c188e5927d500.tar.bz2
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/csum-file.c b/csum-file.c
index 9f9553a..3ab65b7 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);