aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/index_encoder.c
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2022-08-17 17:59:51 +0800
committerLasse Collin <lasse.collin@tukaani.org>2023-01-09 16:34:32 +0200
commitdb714d30e0c74d1dd4af1a23ed62b44e0e8e4efc (patch)
treeb6e4494df4142f88e4f4fd74a42d1fada429aa53 /src/liblzma/common/index_encoder.c
parentStyle: Change #if !defined() to #ifndef in mythread.h. (diff)
downloadxz-db714d30e0c74d1dd4af1a23ed62b44e0e8e4efc.tar.xz
liblzma: Replaced hardcoded 0x0 index indicator byte with macro
Diffstat (limited to 'src/liblzma/common/index_encoder.c')
-rw-r--r--src/liblzma/common/index_encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/index_encoder.c b/src/liblzma/common/index_encoder.c
index ac97d0ce..c7cafb72 100644
--- a/src/liblzma/common/index_encoder.c
+++ b/src/liblzma/common/index_encoder.c
@@ -65,7 +65,7 @@ index_encode(void *coder_ptr,
while (*out_pos < out_size)
switch (coder->sequence) {
case SEQ_INDICATOR:
- out[*out_pos] = 0x00;
+ out[*out_pos] = INDEX_INDICATOR;
++*out_pos;
coder->sequence = SEQ_COUNT;
break;