[haiku-commits] Change in haiku[master]: tools/gensyscalls: Fix -Wformat-security

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 17 Oct 2020 02:23:29 +0000

From Murai Takashi <tmurai01@xxxxxxxxx>:

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


Change subject: tools/gensyscalls: Fix -Wformat-security
......................................................................

tools/gensyscalls: Fix -Wformat-security

Change-Id: Ib114ca218c103a0642b864a658696a3bab81b9d3
---
M src/tools/gensyscalls/gensyscallinfos.cpp
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/29/3329/1

diff --git a/src/tools/gensyscalls/gensyscallinfos.cpp 
b/src/tools/gensyscalls/gensyscallinfos.cpp
index b94a1dd..2b1b41d 100644
--- a/src/tools/gensyscalls/gensyscallinfos.cpp
+++ b/src/tools/gensyscalls/gensyscallinfos.cpp
@@ -42,13 +42,13 @@
        "  <syscall types sizes>  - Output: A source file that will by another "
                "build\n"
        "                           step turned into a header file included 
by\n"
-       "                           <syscall infos>.\n";
+       "                           <syscall infos>.";


 static void
 print_usage(bool error)
 {
-       fprintf((error ? stderr : stdout), kUsage);
+       fputs(kUsage, (error ? stderr : stdout));
 }
 


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

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

Other related posts:

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