From ba3cc27a5cb57f409da121e6e9e5814bee4d92b3 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 11 Jul 2014 16:20:42 -0400 Subject: init_font(), write_fbcon(): Fix char count --- diff --git a/bin/bdf2fbcon b/bin/bdf2fbcon index f42629c..96b1412 100755 --- a/bin/bdf2fbcon +++ b/bin/bdf2fbcon @@ -185,7 +185,7 @@ sub init_font $font->{'width'} = $opts{'w'} if (exists($opts{'w'})); $font->{'height'} = $opts{'h'} if (exists($opts{'h'})); - for ($i = 0; $i < 255; ++$i) { + for ($i = 0; $i < 256; ++$i) { $font->{'chars'}[$i] = { 'name' => 'hello', 'encoding' => undef, @@ -271,7 +271,7 @@ sub write_fbcon " fontdata_%s[FONTDATAMAX] = {\n", $font->{'name'}); - for ($i = 0; $i < 255; ++$i) { + for ($i = 0; $i < 256; ++$i) { $char = $font->{'chars'}[$i]; printf($output_fh "\n\t/* %3d 0x%02x '%s' */\n", $i, $i, $char->{'name'}); -- cgit v0.9.1