$OpenBSD: patch-TTFont_cpp,v 1.2 2002/09/30 14:47:24 naddy Exp $ --- TTFont.cpp.orig Mon Nov 8 04:35:13 1999 +++ TTFont.cpp Mon Sep 30 16:44:57 2002 @@ -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) {