summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2020-06-09 13:31:14 +0000
committerHristo Venev <hristo@venev.name>2020-06-09 13:31:14 +0000
commit2ed8d17840a5f02fec13f15f9651f448b61f6a55 (patch)
tree3b6da851228c6d14bb356517be1ed7347ef610dc
parentb2c4649aaa54ce40e8556b70e812132233f832b7 (diff)
Fix short fwrite().HEADmaster
-rw-r--r--compress.c2
1 files changed, 1 insertions, 1 deletions
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);