[haiku-commits] haiku: hrev54666 - src/bin/locale

  • From: Jérôme Duval <jerome.duval@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 22 Oct 2020 01:59:54 -0400 (EDT)

hrev54666 adds 1 changeset to branch 'master'
old head: 422eeed69970bd2002f8663dce331521b5e117de
new head: 097d6b9ce332df72740b7c1611944511704f89f0
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=097d6b9ce332+%5E422eeed69970

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

097d6b9ce332: bin/locale/collectcatkeys: Fix -Wformat-security
  
  Change-Id: I7e09dd3d8eac8eeb6c4b92e9d9ebf61d5a7b9f5a
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/3338
  Reviewed-by: Jérôme Duval <jerome.duval@xxxxxxxxx>

                                      [ Murai Takashi <tmurai01@xxxxxxxxx> ]

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

Revision:    hrev54666
Commit:      097d6b9ce332df72740b7c1611944511704f89f0
URL:         https://git.haiku-os.org/haiku/commit/?id=097d6b9ce332
Author:      Murai Takashi <tmurai01@xxxxxxxxx>
Date:        Thu Oct 15 11:17:03 2020 UTC
Committer:   Jérôme Duval <jerome.duval@xxxxxxxxx>
Commit-Date: Thu Oct 22 05:59:30 2020 UTC

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

1 file changed, 5 insertions(+), 6 deletions(-)
src/bin/locale/collectcatkeys.cpp | 11 +++++------

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

diff --git a/src/bin/locale/collectcatkeys.cpp 
b/src/bin/locale/collectcatkeys.cpp
index e8ded99946..c8ad3760dc 100644
--- a/src/bin/locale/collectcatkeys.cpp
+++ b/src/bin/locale/collectcatkeys.cpp
@@ -44,8 +44,7 @@ EditableCatalog *catalog = NULL;
 void
 usage()
 {
-       fprintf(stderr,
-               "usage: collectcatkeys [-pvw] [-r <regex>] [-o <outfile>] "
+       fputs("usage: collectcatkeys [-pvw] [-r <regex>] [-o <outfile>] "
                "[-l <catalogLanguage>]\n"
                "                      -s <catalogSig> <prepCppFile>\n"
                "options:\n"
@@ -55,12 +54,12 @@ usage()
                "  -p\t\t\tprint keys as they are found\n"
                "  -r <regex>\t\tchanges the regex used by the key-scanner to 
the one "
                "given,\n"
-               "      \t\t\tthe default is:   ");
-               fprintf(stderr, rxString.String());
-               fprintf(stderr,"\n  -s <catalogSig>\tsignature of the 
target-catalog\n"
+               "      \t\t\tthe default is:   ", stderr);
+       fputs(rxString.String(), stderr);
+       fputs("\n  -s <catalogSig>\tsignature of the target-catalog\n"
                "  -v\t\t\tbe verbose, show summary\n"
                "  -w\t\t\tshow warnings about catalog-accesses that couldn't 
be "
-               " resolved completely\n");
+               " resolved completely\n", stderr);
        exit(-1);
 }
 


Other related posts:

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