[haiku-commits] haiku: hrev54682 - src/bin

  • From: Jérôme Duval <jerome.duval@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 28 Oct 2020 12:26:58 -0400 (EDT)

hrev54682 adds 1 changeset to branch 'master'
old head: ef2e30aacaa10567ca8a0a1348b9760e5d63c857
new head: 17904e625365e5a4acfd0ddb3491fa6762d56719
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=17904e625365+%5Eef2e30aacaa1

----------------------------------------------------------------------------

17904e625365: bin/df: Fix -Wformat-security
  
  Change-Id: Ib8e3000f9b16ef055269728fde3adaf1005a4fba
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/3353
  Reviewed-by: Jérôme Duval <jerome.duval@xxxxxxxxx>

                                      [ Murai Takashi <tmurai01@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev54682
Commit:      17904e625365e5a4acfd0ddb3491fa6762d56719
URL:         https://git.haiku-os.org/haiku/commit/?id=17904e625365
Author:      Murai Takashi <tmurai01@xxxxxxxxx>
Date:        Wed Oct 14 12:08:42 2020 UTC
Committer:   Jérôme Duval <jerome.duval@xxxxxxxxx>
Commit-Date: Wed Oct 28 16:26:35 2020 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/bin/df.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/bin/df.cpp b/src/bin/df.cpp
index cb281a3759..e7466eb0e8 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);
 }
 
 


Other related posts:

  • » [haiku-commits] haiku: hrev54682 - src/bin - Jérôme Duval