summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/deflate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deflate.c b/src/deflate.c
index 2af8245..072cc97 100644
--- a/src/deflate.c
+++ b/src/deflate.c
@@ -252,7 +252,7 @@ static int8_t deflate_huffman(uint8_t * ll_lengths, uint16_t ll_size,
return DEFLATE_ERR_OUTPUT_LENGTH;
}
deflate_output_now[0] =
- deflate_output_now[-dist_val];
+ *(deflate_output_now - dist_val);
deflate_output_now++;
}
}