From 2264ed1e9893169738767cc2b711082cd89a102f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 12 Jul 2014 03:42:57 -0400 Subject: write_fbcon() Fix the file handle for some output --- (limited to 'bin') diff --git a/bin/bdf2fbcon b/bin/bdf2fbcon index 268f882..fb145ad 100755 --- a/bin/bdf2fbcon +++ b/bin/bdf2fbcon @@ -341,7 +341,7 @@ sub write_fbcon $shifted_bitmap = $bitmap; $shifted_bitmap <<= $bytes_x * 8 - $font->{'width'}; for ($k = ($bytes_x - 1) * 8; $k >= 0; $k -= 8) { - printf("0x%02x, ", + printf($output_fh "0x%02x, ", ($shifted_bitmap >> $k) & 0xFF); } printf($output_fh "/* %0" . $font->{'width'} . "b */\n", -- cgit v0.9.1