Another Unicode compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4a0c68a70b
commit
0e89bb17e8
@ -168,7 +168,7 @@ bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
|
||||
wxZeroMemory(lf); // all default values
|
||||
|
||||
lf.lfCharSet = info.charset;
|
||||
strncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName));
|
||||
wxStrncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName));
|
||||
|
||||
HFONT hfont = ::CreateFontIndirect(&lf);
|
||||
if ( !hfont )
|
||||
|
Loading…
Reference in New Issue
Block a user