#include "wx/log.h"
#include "wx/intl.h"
#include "wx/encinfo.h"
+ #include "wx/wxcrtvararg.h"
#endif //WX_PRECOMP
#include "wx/msw/private.h"
wxZeroMemory(lf); // all default values
lf.lfCharSet = (BYTE)info.charset;
- wxStrncpy(lf.lfFaceName, info.facename, WXSIZEOF(lf.lfFaceName));
+ wxStrlcpy(lf.lfFaceName, info.facename.c_str(), WXSIZEOF(lf.lfFaceName));
HFONT hfont = ::CreateFontIndirect(&lf);
if ( !hfont )