From 3a342c5a6ca6c27fdddf0c669392b7ab1d6e3f7e Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Fri, 7 Apr 2006 04:19:49 +0000 Subject: [PATCH] Eliminate warning. --- ChangeLog | 5 +++++ src/fcdir.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7f67250..6a5deb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-07 Patrick Lam + * src/fcdir.c (FcDirScanConfig): + + Eliminate warning. + 2006-04-06 Patrick Lam * fc-match/.cvsignore: * fc-match/Makefile.am: diff --git a/src/fcdir.c b/src/fcdir.c index bc8322b..f505bf5 100644 --- a/src/fcdir.c +++ b/src/fcdir.c @@ -205,7 +205,7 @@ FcDirScanConfig (FcFontSet *set, dirlist[dirlistlen] = malloc(strlen (e->d_name) + 1); if (!dirlist[dirlistlen]) return FcFalse; - strcpy(dirlist[dirlistlen], e->d_name); + strcpy((char *)dirlist[dirlistlen], e->d_name); dirlistlen++; } } -- 2.39.5