Eliminate warning.
authorPatrick Lam <plam@MIT.EDU>
Fri, 7 Apr 2006 04:19:49 +0000 (04:19 +0000)
committerPatrick Lam <plam@MIT.EDU>
Fri, 7 Apr 2006 04:19:49 +0000 (04:19 +0000)
ChangeLog
src/fcdir.c

index 7f67250..6a5deb1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-07  Patrick Lam  <plam@mit.edu>
+       * src/fcdir.c (FcDirScanConfig):
+
+       Eliminate warning.
+
 2006-04-06  Patrick Lam  <plam@mit.edu>
        * fc-match/.cvsignore:
        * fc-match/Makefile.am:
index bc8322b..f505bf5 100644 (file)
@@ -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++;
        }
     }