Calculate SHA256 sum of the uncompressed stream - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit e1c69d4298f03af158a5a5637dad600cdd41f3dc DIR parent bdab7844c3c3299f59eadea85b6e709ab0acad86 HTML Author: z3bra <contactatz3bradotorg> Date: Wed, 20 Feb 2019 14:23:00 +0100 Calculate SHA256 sum of the uncompressed stream Diffstat: M dedup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/dedup.c b/dedup.c @@ -495,7 +495,7 @@ dedup(int fd, char *msg) hash_blk(outp, csize, md); /* Calculate file hash one block at a time */ - SHA256_Update(&ctx, outp, csize); + SHA256_Update(&ctx, inp, blksize); ent = grow_ent(ent, ent->nblks + 1);