In usr.bin/indent/io.c, fix a few warnings about format strings not being literals.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-17 15:41:58 +00:00
parent ac8dee6952
commit f7c0d4c7ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228639

View File

@ -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");
}
}