[Scummvm-git-logs] scummvm master -> 168b7ac8185f4befedba6ba28e404b0e7b7454b3

ccawley2011 ccawley2011 at gmail.com
Wed Sep 16 19:08:56 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
168b7ac818 DEVTOOLS: Fix crash in convbdf


Commit: 168b7ac8185f4befedba6ba28e404b0e7b7454b3
    https://github.com/scummvm/scummvm/commit/168b7ac8185f4befedba6ba28e404b0e7b7454b3
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2020-09-16T20:08:41+01:00

Commit Message:
DEVTOOLS: Fix crash in convbdf

Changed paths:
    devtools/convbdf.cpp


diff --git a/devtools/convbdf.cpp b/devtools/convbdf.cpp
index f12d4c1216..a74d8e2de8 100644
--- a/devtools/convbdf.cpp
+++ b/devtools/convbdf.cpp
@@ -204,8 +204,8 @@ int main(int argc, char *argv[]) {
 				error("Invalid FAMILY_NAME");
 			*p = '\0'; // Remove last quote
 		} else if (hasPrefix(line, "SLANT \"")) {
-			font.familyName = new char[line.size()]; // We will definitely fit here
-			strncpy(font.familyName, &line.c_str()[7], line.size() - 1);
+			font.slant = new char[line.size()]; // We will definitely fit here
+			strncpy(font.slant, &line.c_str()[7], line.size() - 1);
 			char *p = &font.slant[strlen(font.slant)];
 			while (p != font.slant && *p != '"')
 				p--;




More information about the Scummvm-git-logs mailing list