From: Ricardo Markiewicz Date: Mon, 28 Jun 2004 03:24:31 +0000 (+0000) Subject: Fixed X-Git-Tag: svn_import~25 X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/commitdiff_plain/606c4293a74a841ef7d41ed21ed57f0e44aa2e8a Fixed --- 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