}
data = malloc(sizeof(char)*len);
- salida = malloc(sizeof(char)*(len+1));
+ salida = malloc(sizeof(char)*(len+1+sizeof(unsigned long int)*2));
orig = malloc(sizeof(char)*(len+1));
salida[len] = '\0';
bs_restore(orig, salida, k, i);
printf("Orig : %s\n", orig);
} else
- fwrite(salida, 1, i, fp);
+ fwrite(salida, 1, i, stdout);
}
fclose(fp);
bs_destroy(bs);