From 59a7993951d80d2db651e773f3bb16b12e3f6f56 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 6 Oct 2016 23:38:35 +0200 Subject: GRAPHICS: Fix BDF font parsing --- graphics/fonts/bdf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/fonts') diff --git a/graphics/fonts/bdf.cpp b/graphics/fonts/bdf.cpp index 79d31e5b9a..a8ffe28489 100644 --- a/graphics/fonts/bdf.cpp +++ b/graphics/fonts/bdf.cpp @@ -402,7 +402,7 @@ BdfFont *BdfFont::loadFont(Common::SeekableReadStream &stream) { } } else if (line.hasPrefix("FAMILY_NAME \"")) { familyName = new char[line.size()]; // We will definitely fit here - Common::strlcpy(familyName, &line.c_str()[11], line.size()); + Common::strlcpy(familyName, &line.c_str()[13], line.size()); char *p = &familyName[strlen(familyName)]; while (p != familyName && *p != '"') p--; -- cgit v1.2.3