From 4b4a2b684ca341cbbb2a7d217833b639ea60cc79 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 28 Apr 2015 22:08:34 +0200 Subject: [PATCH] Collectcatkeys: PVS1632: unsafe fprintf (harmless). --- src/tools/locale/collectcatkeys.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tools/locale/collectcatkeys.cpp b/src/tools/locale/collectcatkeys.cpp index 6430c307b3..78ded2deb6 100644 --- a/src/tools/locale/collectcatkeys.cpp +++ b/src/tools/locale/collectcatkeys.cpp @@ -57,7 +57,7 @@ usage() " -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, "%s", rxString.String()); fprintf(stderr,"\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 " @@ -247,8 +247,7 @@ main(int argc, char **argv) else if (c == 'o') { outputFile = (++argv)[0]; break; - } - else if (c == 'r') { + } else if (c == 'r') { rxString = (++argv)[0]; break; }