aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-05-29 13:56:02 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-05-29 13:56:02 +0100
commit5c04bb1ad89553c1541a527bf105a86e3a31e1a5 (patch)
tree4d2180de035eea3763acb9fa613cb209eab5bce2
parentfaff52ef2bd3dca503a6fef3129f02284e9b6ca4 (diff)
downloadsyslinux-5c04bb1ad89553c1541a527bf105a86e3a31e1a5.tar.gz
syslinux-5c04bb1ad89553c1541a527bf105a86e3a31e1a5.tar.xz
syslinux-5c04bb1ad89553c1541a527bf105a86e3a31e1a5.zip
font: increment pointer to fontbuf by font height
Instead of always assuming that the font height is 32 bytes, use hdr.height to increment our fontbuf pointer. hdr.height is the size of the chunks we read from the .psf file. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--core/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/font.c b/core/font.c
index 85330808..113b004e 100644
--- a/core/font.c
+++ b/core/font.c
@@ -75,7 +75,7 @@ __export void loadfont(const char *filename)
for (i = 0; i < 256; i++) {
if (_fread(p, hdr.height, f) != hdr.height)
goto fail;
- p += 32;
+ p += hdr.height;
}
/* Loaded OK */