Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 19:25:44 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229194 - stable/9/usr.bin/indent
Message-ID:  <201201011925.q01JPiRd027145@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sun Jan  1 19:25:43 2012
New Revision: 229194
URL: http://svn.freebsd.org/changeset/base/229194

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

Modified:
  stable/9/usr.bin/indent/io.c
Directory Properties:
  stable/9/usr.bin/indent/   (props changed)

Modified: stable/9/usr.bin/indent/io.c
==============================================================================
--- stable/9/usr.bin/indent/io.c	Sun Jan  1 19:19:48 2012	(r229193)
+++ stable/9/usr.bin/indent/io.c	Sun Jan  1 19:25:43 2012	(r229194)
@@ -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");
     }
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201011925.q01JPiRd027145>