From 097d6b9ce332df72740b7c1611944511704f89f0 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Thu, 15 Oct 2020 20:17:03 +0900 Subject: [PATCH] bin/locale/collectcatkeys: Fix -Wformat-security MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7e09dd3d8eac8eeb6c4b92e9d9ebf61d5a7b9f5a Reviewed-on: https://review.haiku-os.org/c/haiku/+/3338 Reviewed-by: Jérôme Duval --- src/bin/locale/collectcatkeys.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 ] [-o ] " + fputs("usage: collectcatkeys [-pvw] [-r ] [-o ] " "[-l ]\n" " -s \n" "options:\n" @@ -55,12 +54,12 @@ usage() " -p\t\t\tprint keys as they are found\n" " -r \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 \tsignature of the target-catalog\n" + " \t\t\tthe default is: ", stderr); + fputs(rxString.String(), stderr); + fputs("\n -s \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); }