]> git.saurik.com Git - wxWidgets.git/commitdiff
don't Printf() the string into itself (replaces patch 1655318)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Feb 2007 02:55:21 +0000 (02:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Feb 2007 02:55:21 +0000 (02:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mimetype.cpp

index 0d9de5f65f1fd9a613c427a903ce119bc4e18464..9aa4adaf07e89b71778203c43c9036a59f1c2dc5 100644 (file)
@@ -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() )