From 606c4293a74a841ef7d41ed21ed57f0e44aa2e8a Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Mon, 28 Jun 2004 03:24:31 +0000 Subject: [PATCH] Fixed --- src/blocksorting/bs.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/blocksorting/bs.c b/src/blocksorting/bs.c index b0010c1..1988f49 100644 --- a/src/blocksorting/bs.c +++ b/src/blocksorting/bs.c @@ -312,6 +312,14 @@ int bs_readblock(FILE *fp, char *data, Uint32 pagesize, int usar_dic) while ((!feof(fp)) && ((i+buffer_pos) < pagesize)) { c = fgetc(fp); + + if (c == ESCAPE_CHARACTER) { + data[i++] = c; + data[i++] = 0xF; + bs_clean_dic(); + continue; + } + hint = check_hint(c); if (usar_dic != 1) { @@ -343,13 +351,6 @@ int bs_readblock(FILE *fp, char *data, Uint32 pagesize, int usar_dic) */ data[i++] = hint+32; bs_clean_dic(); - /* Imprimo el buffer que deberia ser la palabra que reemplazo */ -/* { - int iii; - for(iii=0; iii