fixed a bug with Printf()ing a string into itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2503,7 +2503,8 @@ bool wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName,
|
||||
|
||||
if ( data.needsterminal )
|
||||
{
|
||||
data.cmdOpen.Printf(_T("xterm -e sh -c '%s'"), data.cmdOpen.c_str());
|
||||
data.cmdOpen = wxString::Format(_T("xterm -e sh -c '%s'"),
|
||||
data.cmdOpen.c_str());
|
||||
}
|
||||
|
||||
if ( !data.cmdOpen.empty() )
|
||||
|
Reference in New Issue
Block a user