]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/font.cpp
wxRichTextCtrl native caret now flashes, for wxMac/Core Graphics mode
[wxWidgets.git] / src / os2 / font.cpp
index 8fd33e10b03fee9409dc271f45624204bd2e3234..ca09caefc38dacfb321eaf1be87a510efeff05af 100644 (file)
@@ -697,7 +697,7 @@ bool wxNativeFontInfo::SetFaceName(
   const wxString&                   sFacename
 )
 {
-    wxStrncpy((wxChar*)fa.szFacename, sFacename, WXSIZEOF(fa.szFacename));
+    wxStrlcpy((wxChar*)fa.szFacename, sFacename, WXSIZEOF(fa.szFacename));
     return true;
 } // end of wxNativeFontInfo::SetFaceName