From 2ed8d17840a5f02fec13f15f9651f448b61f6a55 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Tue, 9 Jun 2020 13:31:14 +0000 Subject: Fix short fwrite(). --- compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compress.c b/compress.c index 59bd35c..f64ccd1 100644 --- a/compress.c +++ b/compress.c @@ -197,7 +197,7 @@ static int reconstruct(FILE *out, const uint8_t *data, size_t len, struct backre at = buf; while(bytes) { - size_t n = fwrite_unlocked(buf, 1, bytes, out); + size_t n = fwrite_unlocked(at, 1, bytes, out); if(n == 0) { int e = errno; free(buf); -- cgit