From 736fbca5353235c9d046b4fad2f56ab54efaf993 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Thu, 25 Apr 2019 23:29:50 +0930 Subject: [PATCH] fix compression of exception characters in some sitatuations. --- src/compress_text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compress_text.c b/src/compress_text.c index 48f45419..f6f9f171 100644 --- a/src/compress_text.c +++ b/src/compress_text.c @@ -302,12 +302,12 @@ int pack_word(const char *w,unsigned char *out,int *len) } else { if (w[j+1]) { out[(*len)++]=0xFF; - out[(*len)++]=char_num; + out[(*len)++]=w[j]; fprintf(stderr," X[$FF,$%02x]",char_num); } else { out[(*len)++]=0xFE; - out[(*len)++]=char_num; + out[(*len)++]=w[j]; fprintf(stderr," X0[$FE,$%02x]\n",char_num); return 0; }