]> git.saurik.com Git - wxWidgets.git/commitdiff
Another Unicode compilation fix
authorOve Kaaven <ovek@arcticnet.no>
Mon, 3 Jan 2000 18:44:32 +0000 (18:44 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Mon, 3 Jan 2000 18:44:32 +0000 (18:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/fontutil.cpp

index 5fddec59b862b66dbd27b2dfcb99d61aeb37486b..ecaeb8e2bcb959cb7bf716626cf103c63b724624 100644 (file)
@@ -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 )