diff --git a/aegisub/src/font_file_lister_fontconfig.cpp b/aegisub/src/font_file_lister_fontconfig.cpp index 7a0f8aa45..40b8b99af 100644 --- a/aegisub/src/font_file_lister_fontconfig.cpp +++ b/aegisub/src/font_file_lister_fontconfig.cpp @@ -73,7 +73,7 @@ wxArrayString FontConfigFontFileLister::DoGetFilesWithFace(wxString facename) { if (!final) return results; if (FcPatternGetString(final, FC_FILE, 0, &filename) == FcResultMatch && FcPatternGetInteger(final, FC_INDEX, 0, &fontindex) == FcResultMatch) { FcPatternGetString(final, FC_FAMILY, fontindex, &gotfamily); - if (strcmp(gotfamily,buffer) == 0) { + if (strcmp((const char*)gotfamily,buffer) == 0) { results.Add(wxString((char*) filename,csConvLocal)); } }