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 <[email protected]>
This commit is contained in:
committed by
Jérôme Duval
parent
422eeed699
commit
097d6b9ce3
@@ -44,8 +44,7 @@ EditableCatalog *catalog = NULL;
|
|||||||
void
|
void
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fputs("usage: collectcatkeys [-pvw] [-r <regex>] [-o <outfile>] "
|
||||||
"usage: collectcatkeys [-pvw] [-r <regex>] [-o <outfile>] "
|
|
||||||
"[-l <catalogLanguage>]\n"
|
"[-l <catalogLanguage>]\n"
|
||||||
" -s <catalogSig> <prepCppFile>\n"
|
" -s <catalogSig> <prepCppFile>\n"
|
||||||
"options:\n"
|
"options:\n"
|
||||||
@@ -55,12 +54,12 @@ usage()
|
|||||||
" -p\t\t\tprint keys as they are found\n"
|
" -p\t\t\tprint keys as they are found\n"
|
||||||
" -r <regex>\t\tchanges the regex used by the key-scanner to the one "
|
" -r <regex>\t\tchanges the regex used by the key-scanner to the one "
|
||||||
"given,\n"
|
"given,\n"
|
||||||
" \t\t\tthe default is: ");
|
" \t\t\tthe default is: ", stderr);
|
||||||
fprintf(stderr, rxString.String());
|
fputs(rxString.String(), stderr);
|
||||||
fprintf(stderr,"\n -s <catalogSig>\tsignature of the target-catalog\n"
|
fputs("\n -s <catalogSig>\tsignature of the target-catalog\n"
|
||||||
" -v\t\t\tbe verbose, show summary\n"
|
" -v\t\t\tbe verbose, show summary\n"
|
||||||
" -w\t\t\tshow warnings about catalog-accesses that couldn't be "
|
" -w\t\t\tshow warnings about catalog-accesses that couldn't be "
|
||||||
" resolved completely\n");
|
" resolved completely\n", stderr);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user