X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7538fdc9a6b2d38e61563b0585aeef9a3efc8e84..4e1fd51de7349097a30b3b994e5c6e9b074de77c:/src/unix/mimetype.cpp diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 0d9de5f65f..9aa4adaf07 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -2747,8 +2747,8 @@ bool wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName, if ( data.needsterminal ) { - data.cmdOpen.Printf(wxT("xterm -e sh -c '%s'"), - data.cmdOpen.c_str()); + data.cmdOpen.insert(0, wxT("xterm -e sh -c '")); + data.cmdOpen.append(wxT("'")); } if ( !data.cmdOpen.empty() )