- fwrite(orig, decoded - sizeof(Uint32), sizeof(unsigned char), fp_out);
+ /* XXX AHORA METO EL FLAG EN EL ARCHIVO; DON'T WORRRRRYYYYYYY XXX */
+ if (flags->rflag == 1)
+ orig = bs_finalblock(orig, decoded-sizeof(Uint32), &decoded);
+
+ fwrite(orig, decoded, sizeof(unsigned char), fp_out);