diff options
author | dim <dim@FreeBSD.org> | 2011-12-17 15:41:58 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-17 15:41:58 +0000 |
commit | f2b4c8af68549ded61e5297df2bbd0bd86978d1e (patch) | |
tree | efdec6785cb012462199d1aea95de62ce53685ab | |
parent | d28023bd0968f2326603936d499b0f9cc2bc425e (diff) | |
download | FreeBSD-src-f2b4c8af68549ded61e5297df2bbd0bd86978d1e.zip FreeBSD-src-f2b4c8af68549ded61e5297df2bbd0bd86978d1e.tar.gz |
In usr.bin/indent/io.c, fix a few warnings about format strings not being literals.
MFC after: 1 week
-rw-r--r-- | usr.bin/indent/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c index 1e36582..dda6265 100644 --- a/usr.bin/indent/io.c +++ b/usr.bin/indent/io.c @@ -581,12 +581,12 @@ diag2(int level, const char *msg) found_err = 1; if (output == stdout) { fprintf(stdout, "/**INDENT** %s@%d: ", level == 0 ? "Warning" : "Error", line_no); - fprintf(stdout, msg); + fprintf(stdout, "%s", msg); fprintf(stdout, " */\n"); } else { fprintf(stderr, "%s@%d: ", level == 0 ? "Warning" : "Error", line_no); - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); fprintf(stderr, "\n"); } } |