fixed another 2 instances of wxStrncpy bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-12-27 23:16:30 +00:00
parent 49eb2344d5
commit 98a5281903

View File

@@ -202,7 +202,7 @@ bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
wxZeroMemory(lf); // all default values
lf.lfCharSet = info.charset;
wxStrncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName));
wxStrncpy(lf.lfFaceName, info.facename, WXSIZEOF(lf.lfFaceName));
HFONT hfont = ::CreateFontIndirect(&lf);
if ( !hfont )