From 1f6b7faabc1d4ffb2cbb1486938c5bbdbcea2e10 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 25 Sep 2002 17:03:26 +0000 Subject: [PATCH] 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 --- src/unix/mimetype.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index de87222041..8c5508c557 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -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() )