From 85b69e54e4c93ec78bc571fed3f9281ecac92ea9 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 7 May 2020 14:56:31 +0100 Subject: [PATCH] Browser: Escape percent sign in download progress format string Otherwise the following is printed: printf_internal: Unimplemented format specifier (fmt: 0% of %s) --- Applications/Browser/Tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp index dbe4c53b359..3eb9824639e 100644 --- a/Applications/Browser/Tab.cpp +++ b/Applications/Browser/Tab.cpp @@ -162,7 +162,7 @@ Tab::Tab() auto window = GUI::Window::construct(); window->set_rect(300, 300, 300, 150); auto url = m_html_widget->document()->complete_url(m_link_context_menu_href); - window->set_title(String::format("0% of %s", url.basename().characters())); + window->set_title(String::format("0%% of %s", url.basename().characters())); window->set_resizable(false); window->set_main_widget(url); window->show();