diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-07-11 16:20:42 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-07-11 16:20:42 (EDT) |
commit | ba3cc27a5cb57f409da121e6e9e5814bee4d92b3 (patch) | |
tree | f07a7001d73b964f0620c32429a92d61a06dd365 /bin | |
parent | 67d43d50d57c9a3c2d49602550c008c2fd67eb5f (diff) |
init_font(), write_fbcon(): Fix char count
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bdf2fbcon | 4 |
1 files changed, 2 insertions, 2 deletions
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'}); |