summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2005-09-23 02:08:40 +0000
committerPatrick Lam <plam@MIT.EDU>2005-09-23 02:08:40 +0000
commitbef069e19e72af1f7983e40a7ca5045f7d006bdd (patch)
tree5aa43aa087c012286f7b2e4e55c529937fee3d96
parentc7beacf91698e8b0dcba2e813052538ec56dd268 (diff)
Convert fromcode to char[12] from char *.
-rw-r--r--src/fcfreetype.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index f3eeb8a..c186e07 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -113,7 +113,7 @@ FcFreeTypeIsExclusiveLang (const FcChar8 *lang)
typedef struct {
FT_UShort platform_id;
FT_UShort encoding_id;
- char *fromcode;
+ const char fromcode[12];
} FcFtEncoding;
#define TT_ENCODING_DONT_CARE 0xffff
@@ -549,7 +549,7 @@ static const FcFtLanguage fcFtLanguage[] = {
typedef struct {
FT_UShort language_id;
- char *fromcode;
+ char fromcode[12];
} FcMacRomanFake;
static const FcMacRomanFake fcMacRomanFake[] = {
@@ -570,8 +570,8 @@ FcFontCapabilities(FT_Face face);
static FcChar8 *
FcSfntNameTranscode (FT_SfntName *sname)
{
- int i;
- char *fromcode;
+ int i;
+ const char *fromcode;
#if USE_ICONV
iconv_t cd;
#endif
@@ -596,7 +596,7 @@ FcSfntNameTranscode (FT_SfntName *sname)
{
int f;
- fromcode = 0;
+ fromcode = NULL;
for (f = 0; f < NUM_FC_MAC_ROMAN_FAKE; f++)
if (fcMacRomanFake[f].language_id == sname->language_id)
{