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;