diff options
-rw-r--r-- | dist/fontconfig/src/fcfreetype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/fontconfig/src/fcfreetype.c b/dist/fontconfig/src/fcfreetype.c index d271d69e2..4b2d1d188 100644 --- a/dist/fontconfig/src/fcfreetype.c +++ b/dist/fontconfig/src/fcfreetype.c @@ -1391,7 +1391,7 @@ FcFreeTypeQueryFace (const FT_Face face, } else { - strcpy (psname, tmp); + strlcpy (psname, tmp, sizeof(psname)); } if (!FcPatternAddString (pat, FC_POSTSCRIPT_NAME, (const FcChar8 *)psname)) goto bail1; |