Permalink
Browse files

do not special case chr(26), as it likely does not mean EOF.

  • Loading branch information...
1 parent 54f6b7e commit eee0059e388ae7bbe87b560205d633ef79ebdda0 @bricas bricas committed Mar 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ansilove/ansilove.c
View
@@ -2047,7 +2047,7 @@ void alXbinLoader(char *input, char output[], char bits[])
// read compressed xbin
if( (xbin_flags & 4) == 4) {
- while(offset < input_file_size && input_file_buffer[ offset ] != 0x1A )
+ while(offset < input_file_size && position_y != xbin_height )
{
int32_t ctype = input_file_buffer[ offset ] & 0xC0;
int32_t counter = ( input_file_buffer[ offset ] & 0x3F ) + 1;
@@ -2110,7 +2110,7 @@ void alXbinLoader(char *input, char output[], char bits[])
}
// read uncompressed xbin
else {
- while(offset < input_file_size && input_file_buffer[ offset ] != 0x1A )
+ while(offset < input_file_size && position_y != xbin_height )
{
if (position_x == xbin_width)
{

0 comments on commit eee0059

Please sign in to comment.