Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/diffutils/src Avoid using a variable as format string.



details:   https://anonhg.NetBSD.org/src/rev/8358b47e6c4d
branches:  trunk
changeset: 765276:8358b47e6c4d
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 22:17:50 2011 +0000

description:
Avoid using a variable as format string.

diffstat:

 gnu/dist/diffutils/src/diff3.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e3b22a05454b -r 8358b47e6c4d gnu/dist/diffutils/src/diff3.c
--- a/gnu/dist/diffutils/src/diff3.c    Mon May 23 22:02:26 2011 +0000
+++ b/gnu/dist/diffutils/src/diff3.c    Mon May 23 22:17:50 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: diff3.c,v 1.1.1.1 2003/01/26 00:43:17 wiz Exp $        */
+/*     $NetBSD: diff3.c,v 1.2 2011/05/23 22:17:50 joerg Exp $  */
 
 /* diff3 - compare three files line by line
 
@@ -1404,7 +1404,7 @@
              line = 0;
              do
                {
-                 fprintf (outputfile, line_prefix);
+                 fprintf (outputfile, "%s", line_prefix);
                  cp = D_RELNUM (ptr, realfile, line);
                  length = D_RELLEN (ptr, realfile, line);
                  fwrite (cp, sizeof (char), length, outputfile);



Home | Main Index | Thread Index | Old Index