[haiku-commits] Change in haiku[master]: bin/df: Fix -Wformat-security

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 25 Oct 2020 11:23:20 +0000

From Murai Takashi <tmurai01@xxxxxxxxx>:

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


Change subject: bin/df: Fix -Wformat-security
......................................................................

bin/df: Fix -Wformat-security

Change-Id: Ib8e3000f9b16ef055269728fde3adaf1005a4fba
---
M src/bin/df.cpp
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/53/3353/1

diff --git a/src/bin/df.cpp b/src/bin/df.cpp
index cb281a3..e7466eb 100644
--- a/src/bin/df.cpp
+++ b/src/bin/df.cpp
@@ -22,7 +22,7 @@
 void
 PrintFlag(uint32 deviceFlags, uint32 testFlag, const char *yes, const char *no)
 {
-       printf(deviceFlags & testFlag ? yes : no);
+       printf("%s", deviceFlags & testFlag ? yes : no);
 }



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

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

Other related posts:

  • » [haiku-commits] Change in haiku[master]: bin/df: Fix -Wformat-security - Gerrit