ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit eee0059e388ae7bbe87b560205d633ef79ebdda0
parent 54f6b7e76aeeb249c4dd4258d456aed2e729edd5
Author: Brian Cassidy <bricas@cpan.org>
Date:   Thu, 29 Mar 2012 16:04:32 -0300

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

Diffstat:
Mansilove/ansilove.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ansilove/ansilove.c b/ansilove/ansilove.c @@ -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) {