summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);