diff options
Diffstat (limited to 'src/encparse.c')
-rw-r--r-- | src/encparse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/encparse.c b/src/encparse.c index f47454a..548110e 100644 --- a/src/encparse.c +++ b/src/encparse.c @@ -827,13 +827,13 @@ parseEncodingFile(FontFilePtr f, int headerOnly) return NULL; } -char * +const char * FontEncDirectory(void) { - static char *dir = NULL; + static const char *dir = NULL; if (dir == NULL) { - char *c = getenv("FONT_ENCODINGS_DIRECTORY"); + const char *c = getenv("FONT_ENCODINGS_DIRECTORY"); if (c) { dir = strdup(c); @@ -941,7 +941,7 @@ FontEncReallyLoad(const char *charset, const char *fontFileName) { FontEncPtr encoding; char dir[MAXFONTFILENAMELEN], dirname[MAXFONTFILENAMELEN]; - char *d; + const char *d; if (fontFileName) { parseFontFileName(fontFileName, dirname, dir); |