diff options
author | Eugene Sandulenko | 2016-10-06 23:38:35 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-06 23:49:39 +0200 |
commit | 59a7993951d80d2db651e773f3bb16b12e3f6f56 (patch) | |
tree | 2a453d38aeddab6fd5b932e41fc0b2639294de5f /graphics | |
parent | cd375ae5b328a356f20696ca9c5d21bc827e1ca9 (diff) | |
download | scummvm-rg350-59a7993951d80d2db651e773f3bb16b12e3f6f56.tar.gz scummvm-rg350-59a7993951d80d2db651e773f3bb16b12e3f6f56.tar.bz2 scummvm-rg350-59a7993951d80d2db651e773f3bb16b12e3f6f56.zip |
GRAPHICS: Fix BDF font parsing
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/fonts/bdf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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--; |