diff options
author | KokaKiwi | 2021-11-28 16:50:18 +0100 |
---|---|---|
committer | KokaKiwi | 2021-11-28 16:50:18 +0100 |
commit | a8fc4e8825e42d2f1ad74ee220e78ee22971ad8d (patch) | |
tree | 93c04b1ee7eda784a22717032bda6cee96d702b3 /0001-warnings-fix-format-security-warnings.patch | |
parent | 10acc6ebe76d6386bbe769b5e997c17a873472b5 (diff) | |
download | aur-a8fc4e8825e42d2f1ad74ee220e78ee22971ad8d.tar.gz |
Fix format warning-errors
Diffstat (limited to '0001-warnings-fix-format-security-warnings.patch')
-rw-r--r-- | 0001-warnings-fix-format-security-warnings.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/0001-warnings-fix-format-security-warnings.patch b/0001-warnings-fix-format-security-warnings.patch new file mode 100644 index 000000000000..61adcd314e4c --- /dev/null +++ b/0001-warnings-fix-format-security-warnings.patch @@ -0,0 +1,25 @@ +From 5290fd020da4405820ddde1b376c07ccf649f061 Mon Sep 17 00:00:00 2001 +From: KokaKiwi <kokakiwi+git@kokakiwi.net> +Date: Sun, 28 Nov 2021 16:48:29 +0100 +Subject: [PATCH] warnings: fix format-security warnings + +--- + source/views/view_strings.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/source/views/view_strings.cpp b/source/views/view_strings.cpp +index f28ec78..6fcfa24 100644 +--- a/source/views/view_strings.cpp ++++ b/source/views/view_strings.cpp +@@ -127,7 +127,7 @@ namespace hex { + return 0; + }, this); + if(this->m_regex && !this->m_pattern_parsed){ +- ImGui::TextColored(ImVec4(1.0f, 0.0f, 0.0f, 1.0f), "hex.view.strings.regex_error"_lang); ++ ImGui::TextColored(ImVec4(1.0f, 0.0f, 0.0f, 1.0f), "%s", "hex.view.strings.regex_error"_lang); + } + + if (ImGui::Button("hex.view.strings.extract"_lang)) +-- +2.34.1 + |