From 9c9657e52cc24bf2ba7951011222502f7249e588 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 13 May 2007 16:02:06 +0200 Subject: Store FcCodePageRange in read-only memory. --- src/fcfreetype.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 896ff0e..28d587b 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -81,12 +81,12 @@ static const struct { int bit; - const FcChar8 *lang; + const FcChar8 lang[6]; } FcCodePageRange[] = { - { 17, (const FcChar8 *) "ja" }, - { 18, (const FcChar8 *) "zh-cn" }, - { 19, (const FcChar8 *) "ko" }, - { 20, (const FcChar8 *) "zh-tw" }, + { 17, "ja" }, + { 18, "zh-cn" }, + { 19, "ko" }, + { 20, "zh-tw" }, }; #define NUM_CODE_PAGE_RANGE (int) (sizeof FcCodePageRange / sizeof FcCodePageRange[0]) -- 1.5.1.3