X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/7a58d786d9ca645f1e61a5cb4128f354ae7a80ef..808ffb49a65a20120b8520a1b552e557987c8b2f:/src/blocksorting/bs.c diff --git a/src/blocksorting/bs.c b/src/blocksorting/bs.c index a1e14a2..4ce8a12 100644 --- a/src/blocksorting/bs.c +++ b/src/blocksorting/bs.c @@ -170,13 +170,13 @@ int bs_readblock(FILE *fp, char *data, Uint32 pagesize) while ((!feof(fp)) && (i < pagesize)) { c = fgetc(fp); /* if (c != '\n')*/ - if (c == '\0') { + if (c == 0x01) { /* Debo encodear el \0 para que no complique */ - data[i++] = 0x00; + data[i++] = 0x01; data[i++] = 0xFF; } if (isupper(c)) { - data[i++] = '\0'; + data[i++] = 0x01; data[i++] = tolower(c); } else { data[i++] = c;