X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98ecc3aa689e1671e2771d773af66913cc54b959..b666ade78496cd91d648fcfe2fd6b79ce2b15e33:/src/os2/font.cpp diff --git a/src/os2/font.cpp b/src/os2/font.cpp index 6089595493..ca09caefc3 100644 --- a/src/os2/font.cpp +++ b/src/os2/font.cpp @@ -249,9 +249,9 @@ protected: // Common part of all ctors // void Init( int nSize - ,int nFamily - ,int nStyle - ,int nWeight + ,wxFontFamily nFamily + ,wxFontStyle nStyle + ,wxFontWeight nWeight ,bool bUnderlined ,const wxString& rsFaceName ,wxFontEncoding vEncoding @@ -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