]> git.saurik.com Git - wxWidgets.git/commitdiff
Correctly escape the error log messages in the wxWebView sample.
authorSteve Lamerton <steve.lamerton@gmail.com>
Tue, 8 Nov 2011 13:23:45 +0000 (13:23 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Tue, 8 Nov 2011 13:23:45 +0000 (13:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/webview/webview.cpp

index 04e1db4e9a23987e6165345fb150cd4aa446d4cb..2b3522b3c870020e345c141d786240f575389386 100644 (file)
@@ -803,7 +803,7 @@ void WebFrame::OnError(wxWebViewEvent& evt)
         break;
     }
 
-    wxLogMessage("Error; url='" + evt.GetURL() + "', error='" + errorCategory + "' (" + evt.GetString() + ")");
+    wxLogMessage("%s", "Error; url='" + evt.GetURL() + "', error='" + errorCategory + "' (" + evt.GetString() + ")");
 
     //Show the info bar with an error
     m_info->ShowMessage(_("An error occurred loading ") + evt.GetURL() + "\n" +