add safe wxStrlcpy() function and replaced all wxStrncpy() calls by it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user