[haiku-commits] Change in haiku[master]: terminal: Fix -Wformat-security

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 15 Oct 2020 11:37:55 +0000

From Murai Takashi <tmurai01@xxxxxxxxx>:

Murai Takashi has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3320 ;)


Change subject: terminal: Fix -Wformat-security
......................................................................

terminal: Fix -Wformat-security

Change-Id: I03826c86ea6ffc03b25db5def48f74d72a6f7c4a
---
M src/apps/terminal/TermApp.cpp
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/20/3320/1

diff --git a/src/apps/terminal/TermApp.cpp b/src/apps/terminal/TermApp.cpp
index a27c57a..a90e0e1 100644
--- a/src/apps/terminal/TermApp.cpp
+++ b/src/apps/terminal/TermApp.cpp
@@ -342,7 +342,7 @@
                "\n"
                "Usage: %s [OPTION] [SHELL]\n"), name);

-       fprintf(stderr, B_TRANSLATE(
+       fprintf(stderr, "%s", B_TRANSLATE(
                        "  -h,     --help               print this help\n"
                        //"  -p,     --preference         load preference 
file\n"
                        "  -t,     --title              set window title\n"

--
To view, visit https://review.haiku-os.org/c/haiku/+/3320
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I03826c86ea6ffc03b25db5def48f74d72a6f7c4a
Gerrit-Change-Number: 3320
Gerrit-PatchSet: 1
Gerrit-Owner: Murai Takashi <tmurai01@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: terminal: Fix -Wformat-security - Gerrit