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:
@@ -149,7 +149,7 @@ wxDataFormat wxRegisterClipboardFormat(char *WXUNUSED(formatName))
|
||||
bool wxGetClipboardFormatName(const wxDataFormat& dataFormat, char *formatName,
|
||||
int maxCount)
|
||||
{
|
||||
wxStrncpy( formatName, dataFormat.GetId().c_str(), maxCount );
|
||||
wxStrlcpy( formatName, dataFormat.GetId().c_str(), maxCount );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user