Index: fpdfsdk/fpdf_sysfontinfo.cpp |
diff --git a/fpdfsdk/fpdf_sysfontinfo.cpp b/fpdfsdk/fpdf_sysfontinfo.cpp |
index 7fe4b08e4693116be3345efb8b82386c01221e34..d5ee7d186fa396bb7e43841db0e6c9e675972c72 100644 |
--- a/fpdfsdk/fpdf_sysfontinfo.cpp |
+++ b/fpdfsdk/fpdf_sysfontinfo.cpp |
@@ -152,7 +152,7 @@ static unsigned long DefaultGetFaceName(struct _FPDF_SYSFONTINFO* pThis, |
return 0; |
if (name.GetLength() >= (long)buf_size) |
return name.GetLength() + 1; |
- FXSYS_strcpy(buffer, name); |
+ FXSYS_strcpy(buffer, name.c_str()); |
return name.GetLength() + 1; |
} |