From 17904e625365e5a4acfd0ddb3491fa6762d56719 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Wed, 14 Oct 2020 21:08:42 +0900 Subject: [PATCH] bin/df: Fix -Wformat-security MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib8e3000f9b16ef055269728fde3adaf1005a4fba Reviewed-on: https://review.haiku-os.org/c/haiku/+/3353 Reviewed-by: Jérôme Duval --- src/bin/df.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }