]> git.llucax.com Git - z.facultad/75.06/jacu.git/blobdiff - src/blocksorting/bs.c
Agrego suit de test. Solo ejecutar test_calgary.sh dentro del dir y el laburo
[z.facultad/75.06/jacu.git] / src / blocksorting / bs.c
index a1e14a252cb3e476088a2633e704da95c5d4fc80..4ce8a12ff6be768cdd11dd05b035201663713aa3 100644 (file)
@@ -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;