diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-04-26 07:45:16 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-04-26 07:45:16 +0200 |
commit | 20015feb2daaab43b641b21fc88fc59cacb824fc (patch) | |
tree | 09c38ef91367f6840e593f0cf878b247bb6c0ccd /src/gdft.c | |
parent | c41c32a4fd090e960dea3a8766dc1e08aba5c4ae (diff) | |
download | libgd-20015feb2daaab43b641b21fc88fc59cacb824fc.tar.gz |
fonpath is char **
Diffstat (limited to 'src/gdft.c')
-rw-r--r-- | src/gdft.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1481,13 +1481,13 @@ static char * font_pattern(char **fontpath, char *fontpattern) FcPatternDestroy(font); return "fontconfig: Couldn't retrieve font file name."; } else { - const unsigned int file_len = strlen(file); + const unsigned int file_len = strlen((const char *)file); - fontpath = (char *) gdMalloc(file_len + 1); - if (fontpath == NULL) { + *fontpath = (char *) gdMalloc(file_len + 1); + if (*fontpath == NULL) { return "could not alloc font path"; } - strncpy(fontpath, file, file_len); + strncpy(*fontpath, (const char *)file, file_len); fontpath[file_len] = 0; } FcPatternDestroy(font); |