fix compression of exception characters in some sitatuations.
This commit is contained in:
1 parent
92f80e2281
commit
736fbca535
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user