From 2700628e64939c9496f8ca532b7c188e5927d500 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 27 Jun 2005 17:02:56 -0700 Subject: [PATCH] csum-file: fix missing buf pointer update This would create broken pack archives for anything nontrivial. --- csum-file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/csum-file.c b/csum-file.c index 9f9553ae0..3ab65b751 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); -- 2.26.2