2002-09-30 10:47:24 -04:00
|
|
|
$OpenBSD: patch-TTFont_cpp,v 1.2 2002/09/30 14:47:24 naddy Exp $
|
2001-01-18 23:13:41 -05:00
|
|
|
--- TTFont.cpp.orig Mon Nov 8 04:35:13 1999
|
2002-09-30 10:47:24 -04:00
|
|
|
+++ TTFont.cpp Mon Sep 30 16:44:57 2002
|
2001-01-18 23:13:41 -05:00
|
|
|
@@ -344,7 +344,7 @@ int TTFont::getXLFDbase( char* result)
|
|
|
|
|
|
|
|
|
|
|
|
// some fonts have only unicode names -> try to convert them to ascii
|
|
|
|
- convbuf = malloc(sizeof(char) * 256);
|
|
|
|
+ convbuf = (char*)malloc(sizeof(char) * 256);
|
|
|
|
int lenFamily;
|
|
|
|
char* strFamily = nameTable->getString( 1, 1, &lenFamily, convbuf);
|
|
|
|
if( !strFamily) {
|
|
|
|
@@ -353,7 +353,7 @@ int TTFont::getXLFDbase( char* result)
|
|
|
|
}
|
|
|
|
|
|
|
|
if (strFamily == convbuf)
|
|
|
|
- convbuf = malloc(sizeof(char) * 256);
|
|
|
|
+ convbuf = (char*)malloc(sizeof(char) * 256);
|
|
|
|
int lenSub;
|
|
|
|
char* strSubFamily = nameTable->getString( 1, 2, &lenSub, convbuf);
|
|
|
|
if( !strFamily) {
|